Gum infection can cause pain and swelling. Firstly, You should get consultation and deep cleaning done in case of gum infection. You should use mouthwash at least three times in a day after having meal. you can use hexigel for gum massage three times in day. In advanced stage, Flap surgeries are also advisable but that will be decided by dentist only.