Even if it is generally advisable to consult a doctor, it is possible to unlock the jaw by simple stretches.
You can open your mouth while inhaling slowly and pressing a finger to your chin, being careful not to hurt you.
On the exhale, you release the pressure exerted by the finger and gently close your mouth.
Practiced 3 times a day for a few minutes, this exercise will unlock your jaw.