Hey Deeksha,
Weight gain or weight loss both mainly depend on Calories. How much you eat doest matter much, what you eat matters a lot. Check how much calories you are consuming, if at all you are consuming more calories then you have to burn it by regular exercises. Also there some foods which increases your metabolic rate, so eating such foods will also help you to lose weight.