Hello chandran , it's better to visit a doctor to confirm your findings and then he or she can prescribe you appropriate medicine which will improve your mouth opening and pain. In certain conditions just few antibiotics are sufficient in rare cases you may need other drugs to increase your mouth opening that can be decided only by examining your tooth and degree or pain. So please avoid self medication
Next Steps
visit a dentist
make an x ray
Health Tips
during sleep don't lie on the paining side.
drink lots of water and have fruit juices to maintain your health as you might not be able to eat properly.
avoid hot and hard food items
rinse your mouth regularly after every meal