Ellipticals are REALLY good if you want to run and not hurt your knees!
If you are looking to strengthen your ankles there are exercises you can do.
Here's a short wikihow list to get you started:
8 Ways to Strengthen Your Ankles
I would recommend looking online for exercises that fit you best. And if you have the resources to do so, see a trainer!
Best of Luck!