You need to post a link to the datasheet for your motor. There are hundreds of different Nema 17 motors.
Also, what stepper motor driver are you using and what stepper motor power supply do you have (volts and amps).
Make a pencil drawing showing how you have connected everything and post a photo of the drawing.