Anet A8 extruder motor moves back and forth
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.