Dear patient
when cavities pain after filling then most likely there can be the following reasons.
most important things is to differentiate between sensitivity and pain
It could be any of the following things
Deep filling which is sensitive to certain foods and temperature changes
High point left behind after the filling
Permanent pulp(nerve)damage which will need further treatment
These are all to be decided by the dentist but most importantly you need to be comfortable and pain free
you can choose to go back and get them checked by the same doctor or opt to start treatment with a specialist
Next Steps
full mouth digital xray called the OPG
Health Tips
Do not ignore symptoms by taking painkillers have the issue sorted once and for all