Fungal infection in mouth called as candiasis.it looks like white coating on upper surface of tongue .Usually it doesn't cause closing of mouth instead cracked or dry areas.and a difficulty in swallowing.
Your symptoms more of like regular oral ulcers or canker sores.they are really painful and sometimes patient resist to open motuh because of pain.
Next Steps
visit your dentist for checkup and get a proper diagnosis done for your situation
Health Tips
for fungal infection - use Nystatin mouthwash, use soft brush and change it regularly until infection halts,warm saline rinses
for mouth sores:- stop eating spicy and hot food , antimicrobial mouthwash , dologel before eating and because capsule OD for 15 days