Hello sir....
The pain may be due to
1. trauma to your teeth which cause impact to your nerve layer
2. decaying which reaches nerve layer of your teeth...
3.infection which can spread through your gums and cause abcess( pus ) which leads to pain
As you have pain in your teeth it is mandatory to take X_ray of your teeth to rule out the cause
If the above mentioned cause affect your nerve layer of your teeth it is mandatory to done Root canal treatment of the teeth
Next Steps
kindly visit nearby dentist for furthur consultation and management as soon as possible
Health Tips
Avoid self medication.....Medication is not a permanent solution...