Drive a DC Motor with Arduino Uno

Hello there I am developing a project using an Arduino Uno. I want eventually to construct an obstacle avoiding robot. At first I want to drive the two DC motors that I have bought. However I seem to have some difficulties.

I connect the Arduino with the motors through the motor driving circuit (L298) that I have also bought, but the seems to be no movement possible. One wire of each motor is attached to an output pin and the other to GND. The output pin is set to give 0 and 1 periodically. Shouldn't that start and stop each motor periodically as well?

SOS Please...

That is not how you connect an L298. You need to connect BOTH outputs of the L298 to BOTH wires of the motor. Here is a very detailed example:

--
The Gadget Shield: accelerometer, RGB LED, IR transmit/receive, speaker, microphone, light sensor, potentiometer, pushbuttons