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 appropriate treatment such as soft diet, painkillers and hot compresses over the joint. It's unlikely to be related to ear phone use
Next Steps
Consult nearby ENT specialist for confirmation of diagnosis and appropriate treatment if required