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