When a tooth becomes infected , it is usually related to the nerves in the rooth of the tooth. The infected nerves need to be removed. If an infection is left untreated, then it can turn into an abscess. An abscess is a serious problem, and can cause bone loss in the jaw.
A root canal procedure will relieve you from pain caused by the infection.