Need to get the X-ray of that tooth!
Depending on how deep is the cavity - filling or Root canal would be the treatment recommended. Go ahead with what’s best for you .
Next Steps
Keep that area clean. Remove all the food lodge inside , that can cause gums to swell and add to the pain
Health Tips
Do regular check of your teeth for the future.