arduino and motor

Is it possible to make the motor runs in both directions by using arduino?
if so, how or what are the commands?


you need a motor driver and the appropriate software; Arduino cannot drive a DC motor directly, unless it already has a driver, like an R/C servo motor.
Check out this tutorial.