I am gaining weight and fat very drastically. What might be the reason.

Carbs. Usually, carbohydrates are the culprit. See if you carbs are too high in your diet. Count calories and exercise more to burn off more calories than you take in. Underlying conditions like thyroid disorders, diabetes, depression, can all make you gain weight too. See doc for eval if you keep gaining and can not lose. Good luck to you.