Hello and Welcome to HCM,
Thanks for writing to us.
Clicking sound while opening and closing of mandible occurs due to TMJ
TMJ disfunction can also cause pain in the jaw, tenderness in the ears and difficulty in mouth opening.
TMJ disfunction can be treated with inflammatory medications, application of moist heat towels in some cases splint
therapy can be given.
It would be advisable for you to seek care from a dentist
with a special focus on orofacial pain
and TMJ disorders and get the clinical evaluation done, take an OPG radiograph to look for the condition of the joint.
Hope this helps you.
Wishing you good health...