what can i do for a pain in my knee joint

I have a sharp pain in my knee and sometime when I use the steps they feel like there is no joint there and I am only 40