According to your problem mentioned, you might have gingival or periodontal abscess(pus collection) for which simple treatment has to be taken .
Next Steps
visit a nearby gum specialist
Health Tips
avoid hot beverages and food which might aggravate the pain and swelling, also avoid applying any irritant like eucalyptus oil, zandu balm etc