Hi there,
If it's a wisdom tooth pain, it will gradually reduce your mouth opening. You can have any food, but you should concern about the pain and source of origin of pain. Long standing wisdom tooth can lead to other problems too.
Next Steps
visit dental clinic, get your x ray done. Local anaesthetia will help you to open your mouth and get the disease diagnosed.
Health Tips
medicine will give you a transient releif, untill the source of infection is not treated. Better get it ruled out for wisdom tooth or any other tooth related problem.