As decay progresses more profoundly into the tooth, to the dentin and pulp, sensitivity and pain increase, leading to an infection, and a cavity now becomes a dental emergency. If this happens, an emergency dentist can solve the problem and prevent it from getting worse.