@sticks918 I can't see anything on this page https://3dprint.wiki/reprap/anet/a8/steppermotor that would stop the stepper motor working with Duet. I think it's the wiring in the plug that connects to the Duet. Can you take a picture of the motor and plug wiring? Did you try and work out the motor phases?

Ian