If your gums moving up and down. Might be some calculus
is left on the roots of your teeth. You might need root planning too. After that your loosening problem can reduce to some extent.in the mean time you can massage your gums with any gum paint and do lukewarm saline gargles.