a4988 stepper motor driver not working. Output pins not giving any voltage.

Can you draw a careful and complete diagram of all the connections as they are while the motor works and then post a photo of it here.

There has been too much confusion about wiring already to deal with this without that diagram.

I presume the connector pins are carefully soldered into the A4988 this time?

...R