beginner, need help with dc motor control

hi, i'm a new arduino user and i don't know very much about programming.
This is what i want my dc motor to do:

  1. I press a push button, the motor runs for a few seconds
  2. the motor stops, and doesn't start until i press the button again.

i have the motor, a push button and the arduino uno board
thankful for any help.

You need some sort of driver to convert the small ammount of current from the pin into enough to drive the motor.
As for software it is just like you do the same thing with a LED look at the examples in the arduino software about detecting a change in state of the input, not just reading its value.