You seem to be suffering from temporo Mandibular joint dysfunction secondary to dental problems. Usually it will resolve on its own with simple measures such as soft diet, painkillers, hot compresses etc
Next Steps
Consult nearby ENT specialist for confirmation of diagnosis and appropriate treatment if required