You have 3 stepper plugs, the X, Y and Z stepper are plugged into these 3 plugs.
You have two steppers plugged in wrong.
You need to swap two over.
Which two I cant say.
Try. X and Y
Make sure its all off. Swap X and Y steppers over. also swap the X and Y endstops over.