Hi,
Welcome to ehealthforum,
Having irregular periods and having long gaps between periods could suggest anovulatory cycles (menstrual cycles without release of egg from ovary) which usually occurs during pubertal stages. Other possibilities include PCOS, ovarian suppression, hormonal derangements, etc. The exact cause can only be made out after careful evaluation. Consider visiting your doctor/gynecologist for thorough examination and further evaluation to look for the underlying cause. Treatment as appropriate (based on examination findings and investigations results) would be started to help you regulate your periods.
Take care.