I'm confused

I haven't had my Period for about 6 months , then this week It came , I thought I was pregnant, but now I'm not sure what's going on, I read that stress and many other reason could be the cause , but I'm so unsure ! Help