Hi, looks like the pain is due to incompletely erupted third molar tooth...I mean the part of the last tooth is stuck inside the gums...
Next Steps
visit your dentist...with the help of x ray, they will decide the treatment part...
Health Tips
keep the area clean...due to food lodgement, the pain increases with ulcers, redness...