Sensitivity is because the upper layer is worn out. This may be due to harsh brushing habit, using hard tooth brush, grinding your teeth and so on. You need to go and see your dentist.
Next Steps
Till then you can use any of the desensitizing toothpaste.
Health Tips
Use soft tooth brush and brush your teeth in vertical strokes. Thank you.