A quick circuit showing how to control the speed of a DC motor with a potentiometer with your Arduino board. Also shows how to use a TIP120 transistor to allow the Arduino control a larger power supply.
More here: Arduino: Control a DC motor with potentiometer and multiple power supplies