It's best to go to a dentist specializing in TMJ, or a good Chiro, otherwise - you are listening to some guy on the internet. And we all know how bright that is. But we've dealt with this a lot of the years, it happens. So, for entertainment purposes only -
Press your tongue to the roof of your mouth, open your mouth fairly wide - keeping your tongue there, and breathe in nice and slow for two or three counts and out nice and slow for two or three counts. Release and repeat 10 times.
Then, with your mouth closed and relaxed, make a fist and place it directly under your chin, keeping the fist even and comfortable underneath. Press as you gently try to open your jaw. It's an isometric, should relax the jaw bone a little. Don't let your jaw "click" while doing this - if it's been clicking since you first hurt it. Hold for 10 seconds. Release and repeat 10 times.
Next part - put your fist against the side of your jaw (lower than the hinge) and keep a steady pressure - don't allow your jaw to move with the pressure. (it's another isometric, helps relax the jaw) Hold for 10 seconds and relax. Do it ten times, then repeat on the other side of your jaw.
Using both hands, press one finger against each side of your jaw. (be careful to apply pressure evenly). Open the jaw very slowly (again, don't let it click. If it does click, let go and start again, opening more slowly. The even pressure on each side should let your jaw open and close in correct alignment.
Once your jaw is realigned - keeping your jaw and mouth loose, hold your chin between your thumb and forefinger. Very carefully and slowly, staying loosey-goosey, shake your chin back and forth (NOT TOO FAR), allowing the jaw to relax and release. If this exercise causes pain - STOP. Continue until your jaw feels loose and relaxed. Do once a day (or more) to align your jaw. Usually, your jaw muscles employ muscle memory fairly quickly (they don't like being hurt either) and go to the relaxed positions on their own.
Good luck, bro. Hope it all works out.