Ensure that your X, Y and Z endstops match the X, Y and Z motors. In other words, the X endstop should be on the same vertical extrusion as your X stepper and the same for Y and Z. If they're not matching, I've seen odd behavior like that.
↧