Good morning lybrate-user
As per your query and words it sounds you are suffering from periodontitis
Reason for periodontitis is improper brushing.
I advice you to visit
(Gum specialist, get it checked.
If it's mild he will do the Scaling (professional cleaning) and if condition is sever he might advice you flap procedure.
And do ask for proper brushing technique so this thing should not reoccur.