It depends on the cause of sensitivity. You may need to see a dentist to figure out exactly what's causing it.
It can be due to gum recession (gums are receding away) exposing the roots. This can be remedies through bonding (fillings), sensitivity toothpaste, fluoride treatments at the dental office, laser treatments, gum surgery, etc
It can also be due to cracks or breaks in the teeth. This could require further dental care.
Cavities can also cause sensitivity.
Bruxism (clenching and grinding) can cause sensitivity
And the list can go on and on.