Nema17 and a4988

Post the code, using code tags, a wiring diagram and links to the parts. Did you set the current limit correctly?

Please explain what this means: "the engine didn't spin the way it was supposed to".