A function is a function, whether it is a method or not. You must call it correctly, and in the right place:
Odometer simulator;
int number_of_miles_driven;
cout << "Please enter the amount of miles driven : " << endl;
cin >> number_of_miles_driven;
simulator.input_miles(number_of_miles_driven);
Notice how I changed the name of the variable to "number_of_miles_driven"? This is to remind you that the name of the variable you use doesn't have to be the same as the name of the function's parameter (which I didn't change from "miles_driven").
You seem to be a little confused about how your class is going to work...
Hope this helps.