I can't move my leg

So, at the base Of my leg I noticed it felt weird. So I tried to lift it (I'm laying down trying to sleep) and it feels like a knife is ripping through my leg. It's a really sharp intense pain. I can't move the base at all. Help?