Initial treatment would be using a toothpaste which is indicated for sensitivity. For eg. Sensodyne is good. Next step would be please avoid too hot or too cold and sweet food and drinks.
Next Steps
if the sensitivity persists even after this, please consult a dentist, he will advise you treatment according to the teeth condition