Bones rotate instead of moving
To make you leg work properly you need to:


Deactivate the Manipulate Center Points option in Pose or Object mode (made to shift objects from each others) otherwise you won't be able to rotate anything.
In Edit mode, give a correct parentage to your bones: Deparent the IK controller from any bone except the root bone that you will create at the end. Parent the foot bone to this controller.