The preferred line of treatment in case of cavity in teeth and pain
treat is to visit dental surgeon
and have checkup done. Now treatment for cavity in tooth is restoration of tooth by filling the cavity and after this treat gums. You can use use colgate total paste for cleaning of teeth and regular use of listerin mouthwash and keep your oral hygiene maintained and gums healthy. Please get all your teeth checkup done for further treatment at dental clinic
and proceed for required treatment.