thanks for posting your query.
sINCE you are getting frequent toothache as well as jaw pain
there may be decayed or periodontally compromised teeth in the involved area.
Frequent intake of analgesics will not give permanent relief.
Please get your decayed teeth filled.
deep scaling and root planning has to be done.
has to be drained and curetted,
Maintain good oral hygiene
bRush your teeth twice daily.
if ANY ROOT STUMPS OR GROSSLY decAYED teeth present,it has to be removed.
Please do visit your dentist
for the reference.