In case the tooth is not root canal treated then you need to go for rct of the tooth.also an iopa/x -ray should be taken.and if in case its rct is already been done then it would be advisable to consult an endodontist to find out the underlying cause.
Next Steps
do visit a nearby endodontists , he will guide u properly
Health Tips
for temporary relief u can take some medications.