Get a radiograph taken of the tooth, and check with your dentist. If the secondary caries reach the pulp tissue, you will have to undergo root canal treatment, otherwise simply replacing the filling will do.
Next Steps
Consult with your dentist after taking a radiograph
Health Tips
Do not delay, as it will just worden the condition