May be a high point is there in your filling or the depth is near to the nerve of ur tooth. Diagnosis is reversible pulpitis. Visit to your dentist as soon as possible. Tell him to check high point first. If there is no high point then he will remove ur restoration and will give suitable medication under ur restoration.
Next Steps
if ur problem doesn't resolved after all the treatment, consult an endodontist.