The middle tooth requires the Root canal treatment, and the other needs a restoration (filling).
Next Steps
Visit a Dentist as early as possible to avoid more pain in this tooth.
Health Tips
Get a Dental check up done every 6 months to avoid delay like in cases like this. The Dentist will examine all the teeth, and let you know if there are any cavities.