Sometimes the two coils of the steppers have different wire colors or the order of connection is wrong. Usually black/green and red/blue are the coil pairs. The order to connect them is black, green, blue, red or vice versa if the motor runs the wrong way.