Sore throat and difficulty in swallowing are the symptoms usually associated impacted wisdom tooth
which is inflamed.
Your gums are periodontally infected resulting in abscess formation.
I would advice you to visit a dentist
and get a thorough scaling sone.
Abscess has to be drained and curetted.
Maintain oral hygiene
Gargle frequently with warm saline and chlorhexidine