Hello,
From the way you have put it, sounds like you have either pulled a muscle on the back of your knee or may be torn a ligament inside the knee. Either way if you are unable to walk, you should contact an orthopaedic immediately and get yourself evaluated.
Next Steps
Contact Orthopaedic
Health Tips
Apply ice to the painful areas with pain relieving sprays should help