Hi, you need to get your blood checked for any hormonal imbalance. There is a possibility of hyperthyroidism which prevents the patient from gaining weight. But it can easily be treated.
Also only eating a lot is not enough, eating right is important.
Time intervals in your food intake, quantity, quality and combination of food matter when you want to gain weight.
Next Steps
Thyroid level reports. And proper diet plan and exercise.