why can’t i have my period without the pill?

so i started on the pill about two and a half years ago because of irregular periods and REALLY bad cramps. but about 8 or 9 months ago i decided to stop because i could never remember to take it anyways, after that i didn’t get my period at all? so i started taking the pills again a month ago and now i have my period again like nothing happened? now i’m worried that it’s something serious and i won’t be able to have kids in the future