Motor and L298N

Welcome to the forums. Please take a moment to read the sticky post at the top of the forum about how best to post code (using code tags) and it will help people help you.

You should also request that a moderator move your post from "Installation and Troubleshooting" to a more appropriate topic like "Programming Questions"

In setup(), you declare your enable pin (ENA) as an output, but you never set it to anything. By default, that means the output will be LOW. It usually needs to be HIGH to enable the driver.