Sorry for the late reply, work have been bunkers lately.
So it turns out that the problem is probably a lose connection in the wire. I tried to switch the wire to the two Z-axis, but found out that there was not enough length in the wires to do this, then put them back in their respective stepper.... lo and behold, it is working again.
Definitely need to order new cables.