Ardiuno UNO, a4983 driver and stepper motor

Looking at the photo you might have the motor wires in the wrong order. I am using the same stepper and driver and the order that works for me is blue-yellow-green-red. Make sure the power is off before changing the motor wiring.