Toothache?

Toothache often associated with bacterial accumulation

Question is where is the source of bacterial infection: within the tooth, or surrounding the tooth. Is the tooth savable?