what's happening to me?

I got out of bed really fast and a had a really quick sharp pain in my right said and then it was over. And I got really dizzy right after it. It only lasted for like 2 seconds and then it was over? What does this mean?