Well what do you mean exactly by you can't fold your knee. As in retracting your leg back so that your ankle/calves touch your quadraceps? Additionally, are you just saying you cannot literally fold it, or you can, but its painful? What exactly was this accident and where precisely did they do the surgery on, and for what purpose? For something as serious as that, I'm not sure what you are doing on a health forum with people who don't know that much more about their bodies then you probably do, when you should check it out with doctors to see if the surgery has gone wrong or failed, or if its a side effect, etc.