Hello sir , surely you have visit to dentist for better prognosis and if there is slide sensation along with pain then you need dental X-ray
Next Steps
Better to share the image of tooth that having cavity
Health Tips
Do not use any tooth pick or else to removing the food lordgement if its there
Thanks and regards
Dr Rajput pune