Why does my tooth still hurt after weeks of getting a filling?

When I was at the dentist they did an x ray on my tooth that had a huge hole and it showed it didn't went near the pulp but it was very wide and then they filled it and they said I would be sore for a couple days?
Update: Fwi It only happens when I drink hot or cold drinks or when I eat on my other side of my mouth
5 answers 5