Obviously i cannot say without seeing you.
However, there is a "disk" at your temporomandibular joint that can slip or lock, and cause symptoms like this. See your dentist. In the mean time, try icing it and don't try to force it open. Here is some more info: