You seem to be suffering from temporo Mandibular joint dysfunction secondary to dental problems. Usually it will resolve with simple measures such as soft diet, painkillers, hot compresses. If there are any significant dental problems they need to be treated
Next Steps
Consult nearby ENT specialist for confirmation of diagnosis and appropriate treatment if required