You can not run a motor from the voltage output of an output pin. You will damage your arduino if you try. You need some sort of driver. A transistor or a FET.
If you want control of the motor's direction you need a circuit called a H-bridge.
See this for an introduction to motors:-
http://www.thebox.myzen.co.uk/Workshop/Motors_1.html