Hi!
I am sorry to hear about your medical problems. If the fracture occurred two years ago, then yes, the prosthesis used to hold the fracture ends could be causing the pain. However, persisting pain can also be due to non–union of fracture, ligament tear, tendonitis, a recent injury, repetitive strain on the ankle.
If conservative treatments like rest, application of ice, raising the leg, wearing comfortable shoes, and taking non-steroidal anti-inflammatory for a few days do not help take care of the pain, then you will need X-rays and MRI to look into the cause.
If there is considerable improvement in pain, then you can try exercises of knee and ankle joints to strengthen the muscles and ligaments of these joints.
Given the fact that you have a two year history, please get this investigated.Hope this helps. Take care!
The medical advice given should not be considered a substitute for medical care provided by a doctor who can examine you. The advice may not be completely correct for you as the doctor cannot examine you and does not know your complete medical history. Hence this reply to your post should only be considered as a guiding line and you must consult your doctor at the earliest for your medical problem.
You don't mention what rehab was done?
It sounds like the bones were fixed, and maybe not the surrounding soft tissues.
You need to strengthen the joints and muscles.