Hi,
As you have irregular periods and have gained weight over past 3 months, you need to consult your doctor/gynaecologist and get yourself clinically examined and investigated.
You may require few tests like
complete blood count, esr, USG abdomen and pelvis, and
thyroid function test.
Take regular healthy diet and keep yourself hydrated.