Stepper Motor only works efficiently when I'm holding it

gmamafilms:
I'm using a NEMA 23 stepper motor paired with an L298N motor controller. The DC power supply is a 24V and 2.5A which should be enough to power the motor according to the Amazon page.

That risks destroying the L298, or the motor or the power supply.

As @jremington has said you need a specialised stepper motor driver that can comfortably supply the current required by your motor.

Please post a link to the datasheet for your stepper motor.

...R
Stepper Motor Basics
Simple Stepper Code