It can be due to caries or periodontitis. Get the tooth x-rayed to know the exact cause depending on that, you either have to go for RCT, or scaling.
Next Steps
Consult a dentist
Health Tips
Do not delay the treatment, and consult the dentist at the earnest.