By caps I think you mean jumpers, right?
As you likely know, besides having the enable pin (ENA) set high, you also need to set one of the "IN" pins high and the other one low.
Eight years ago, I made this video in an attempt to explain how to use a L298N motor controller.
I used a Parallax Propeller microcontroller in the video but the principles apply to the Arduino.
As others have suggested the 5V regulator on the Arduino can't provide enough current to drive a motor without the danger of burning out the regulator on the Arduino.
A 12V battery would be a good source of power but I'm pretty sure 5V is outside the specs listed in the L298N's datasheet. In the video, I used a 5.3V battery pack to drive the motor. This voltage is also too low but it worked well enough to power the motor shown in the video. The vehicle shown at the end of the video was powered with a 12V (or close to this) battery.
I didn't see any problems in the tutorial you linked but be away there's a video by The Raspberry Pi Guy had a video which instructs users to connect 5V to the Pi's GPIO pins. People following this video have burned out their Pi Boards. Unfortunately not all tutorials on the internet are safe to follow.
Try controlling the motor with a better power supply and let us know how it goes.