welcome to h& m,
if there is thyroid
function is imbalance then also you can gain weight.go for investigation T3,T4,TSH
and for digestion 1 take 12-15 glasses of water daily.
2 take meals in time
3 intake of fruits is compulsory
4 sound sleep for 6 hours daily.