Periods

Can anyone help me I always have irregular periods but this time I was 3 months late and I have been in absolute agony all day with bad cramps and the pain only eased off when I started bleeding , why was it so painful also I have no idea why my periods are irregular ??