You seem to be suffering from temporo Mandibular joint dysfunction secondary to dental problems. Usually it will resolve on its own within few days. You can use analgesics, hot compresses, and soft diet for few days
Next Steps
Consult nearby ENT specialist or maxillofacial surgeon for confirmation of diagnosis and appropriate treatment if required