Did you have any kind of trauma in the recent past..
That maybe the cause of your pain .
There can be underlying infection in your wisdom tooth area which pain may radiate to your tmj and cause restricted movement and mouth opening difficulties.
Next Steps
You need to visit a nearby dentist to get your problem checked.
You can have a muscle relaxant for a couple of days.
Health Tips
Avoid chewing very hard food and go for a soft diet.
Avoid clenching your teeth too hard.