Get yourself investigated to find out the reason of irregular periods .Get investigations done like
thyroid function test, other hormonal profile and an ultrasound scan pelvis to rule out PCOS.
Next Steps
Watch your diet and exercise regularly to maintain normal BMI so that your periods will become regularised naturally