Calculate the correct current limit for driver A4988

What voltage did you apply to the motor before? Maybe you damaged it already. This little 5V steppers cannot withstand higher voltages for long.