M x axis wont move at all

My x axis doesn’t move. If i take the Z axis cable and plug it into the x motor it works.

What machine?
What controller?
What are you doing to make it move?
The more information you give, the easier it may be to help.

Check your X-stepper wiring with a continuity meter (ohm it)