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. Treatment of primary dental problems may also be necessary
Next Steps
Consult nearby maxillofacial surgeon for confirmation of diagnosis and appropriate treatment if required