Root canal therapy is often recommended to resolve issues that cause severe tooth pain, such as deep dental decay and tooth infection.
If the dentist has recommended a root canal treatment, then there is a chance that you have an infected tooth.