Friend, you didn't tell me where the knee joint hurts, whether the knee joint is swollen at present and to what extent. It should be noted that the inability to flex is closely related to the patella ligament, and the injury of its upper and lower ligaments directly leads to flexion pain. In addition, strong and uncoordinated movements may also cause avulsion fracture of patella, so I ask you if there is joint swelling, because if there is a fracture, there will be obvious subcutaneous bleeding and swelling. The skin is bruised.
At present, the situation is temporary braking. Don't forcibly move (you can walk with straight legs) or do massage to avoid aggravating the injury. Take an anteroposterior and lateral picture of the knee joint to see if there is any avulsion fracture of the joint and bone.
In terms of treatment, massage and other treatments are not possible for one day or two. After the fracture is ruled out, it is stable for 3-5 days, and then massage, acupuncture and physical therapy are carried out, with quick and good results.