According to what you have mentioned ,looks like your wisdom tooth is erupting resulting in pain which could be either due to insufficient space for the tooth or infection and inflammation of the gums around that tooth .you might have to start with course of antibiotic and pain killer for the pain to subside .its better if you visit your nearby clinic so that they can take an x-ray and advise whether to take the tooth out or not .
Next Steps
Get your OPG (full mouth x-ray) done and visit the nearest dentist
Health Tips
For pain ,you can take painkiller and warm salt water gargle three times in a day might help you .