Not pregnant but no period...

I had sex like 3 or 4 months ago and have not had my period since then. I took a pregnancy test but it said negative. So I don't understand why I'm not having it?