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, hot compresses etc. If your symptoms persist then you may need to consult nearby dentist too
Next Steps
Consult nearby ENT specialist and dentist for confirmation of diagnosis and appropriate treatment if required