Consult your dentist. Get an xray done.
Next Steps
If pain due to food lodgement than it needs refilling or if there is reinfection beneath your previous filling you need root canal treatment and cap over it depending on your xray and clinical examination
Health Tips
Do not ignore the pain and visit as soon as possible as medicines won't help much