Root canal treatment (also know as endodontic therapy) becomes necessary when a cavity is neglected, allowing it to penetrate all the way to the pulp. Sometimes deep restorations or trauma to a tooth may cause the nerve to be damaged to the point it needs root canal therapy.
Once this occurs the pulp becomes infected, and can even extend through the root tip and begin to eat away at the surrounding bone, which would be considered an abscess.