To get a replacement wire, just look at the connectors on the stock wires and look at Amazon pictures until you find ones that are identical (and long enough). This one looks right, if my memory serves me well.
To diagnose the main board, just try swapping the wires around and moving the printer with the settings menu. Good luck!