You can measure distance on Google Maps to give you the approximate mileage between any two points (or more) that you place on the map.
Your iPhone can track steps using a built-in accelerometer. You can track your steps in the Health app, where you can see a range of exercise metrics.