Anet A8 extruder motor moves back and forth This is what is happening to my motor. Any suggestions would help. 
1. I have tried adjusting the trimpot. 
2. Rewire the connector to match the one on the motherboard.
3. Anything else I found on the internet.
Check the continuity of the wires on the cable. Sometimes, they are not crimped correctly. Another common fault is crossed wires. In either case, the easiest diagnostic test is to substitute another cable, but please note the color coding of this replacement wire to match the cable you replace.