It mainly because of periodontal pocket means ur food stuck in between tooth so that's the reason u got pain so u feel like nerve inside teeth r paining.
Next Steps
Go to nearest Dental clinic & take OPG(full mouth x ray)done, if any finding r there then dentist will discuss with u
Rx
1, I m suggest Normal cleaning as well as laser deep cleaning (LANAP)
Health Tips
1, gargle after every meal
2. morning salt water gargle
3 . avoid tooth pick
4. always using Dental floss after meal