I have read your concern.
From the details mentioned,its clear that your Temporomandibular joint has Inflammed.
This can lead into double ear infection
A thorough palpation of the joint as well as OPG radiograph will help to evaluate the infection underlying.Amoxycillin
as well as analgesics with muscle relaxants has to be administered.
Please do visit an oral surgeon as well as ENT specialist
for further reference.
Hope this helps.