The yellow deposits are calculus and you will need a professional cleaning to take care of it. The pulling back of the gum could be due to the massaging or brushing harshly, it could also be due to any other kind of trauma, or it may possibly be due to some decay present in the tooth that may have progressed to the hum and bone.
Next Steps
kindly visit your family dentist to further diagnose and treat the problem