You need to do a motion examination and treat any abnormality found there in. This can be the cause of poor weight gain. Take a high protein diet, not necessarily non-veg, and do regular physical exercise. Have good sleep at night and avoid stress
. You should soon be able to put on weight.