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 try soft diet, painkillers and hot compresses for faster recovery
Next Steps
Consult nearby ENT specialist or maxillofacial surgeon for confirmation of diagnosis and appropriate treatment if required