The dentin layer, located beneath the enamel, contains microscopic tubules. When the enamel erodes or the gums recede, these tubules become exposed. Hot, cold, sweet, or acidic foods can reach the nerves in the tooth through these tubules, causing sudden pain.
Therefore, sensitivity is not only a discomfort but can also be a sign of an underlying problem developing in the teeth or gums.