The stepping motor vibrates only
The program error, the program pulse is given too fast, the motor can't react, can only follow the vibrations.
The wiring is wrong, the motor moves forward a bit, turns a little, and it vibrates in the front and back.
If the hardware doesn't have a problem, it's your program's problem.I hope my answer will help you