using L298 to control Dc motor (basic)

You should show the actual schematic you are using, or a link if you have a shield.

Cheers,
Kari