Teeth become infected when bacteria are allowed to find a way inside to the pulp of the tooth. This can occur when there is tooth decay or deep cavities; it can also happen when there is a cracked or broken tooth. Once the inside of the tooth is infected or abscessed, it can cause inflammation that presses on the nerves, causing tooth pain. A root canal is the only way to remove the infection, saving the tooth and eliminating the pain.