hello and welcome to hcm forum,
i would like to inform you that pain with
swollen gums is something which is following infection, which either may be from a decayed tooth or infected gums.
If the tooth is not hurting on chewing food or on tapping then it is most probably
gum infection,
Thorough cleaning (removal of
tartar ) will help resolve the infection.
But in order to confirm the cause, a
dentist needs to examine the oral cavity thoroughly, i will advise you to see your dentist soon.
Until then you can perform warm saline rinses( 3- 4 times.day) to relief pain and swelling,
use an antibacterial mouth rinse(twice/day),
Do not apply any hot compresses over the swelling.
i hope this answer was useful,
i wish you good health.
take care.