Nema 23 is rotating like crazy

Hi! I'm using a nema 23 with drv8825 drivers and an atx as power source. I'm confused because when I plug any motor to the driver it works fine, but when I plug this other motor (the crazy one) it starts like making one step clockwise and the next anticlockwise and so on. Then if I rotate it with my fingers while it's doing that sometimes it starts spinning the way I rotate it, but sometimes it doesn't!. It also has low torque. The strange is that I'm using 2 similar motors, they are both the same. Shall I disassemble the crazy motor to see if something is burned inside?

This is so wired. I just swipe wires between both motors and it worked fine! Some wire might be disconnected

Fixed! A wire wasn't making contact. Ty great community