Welcome to healthcaremagic.
The cause of occurence of gum infection
has to be evaluated clinically.
If tooth is decayed,get it restored .
If pulp is infected,it has to be extirpated.
Take complete course of antibiotics-analgesics as per dentist's prescription.
Meanwhile,maintain oral hygiene
Gargle frequently with warm saline.