Ok, i think z os ok. It behaves as expected. It's quite common for z to stall which are the vibrations. If z uses lead screws make sure acceleration is 50 and z speed 2mm/s. Once on also check how much force you need to turn motor - maybe current is even a bit low. Especially if it is shared with 2 motors. Friction is often quite high and steps per mm also high and high accelerations cause a stall and high stepp frequency then just jitters the motor which never catches up.
Swapping cables only verifies motors are ok. You need also once swap the drivers to see if the drivers are also ok.
Also check in eeprom if steps per mm is a correct value. 0 or NaN might prevent enabling motor.
Sleep/reset never get set, dir depends on last move direction. step is only high for a short time so it is hard to measure.
In case it is just a defect on board/avr move x to E1 socket and use that for driving X axis and see if it works better. In config tool it is just selecting the other socket for x axis.
Hope one of these helps finding the reason.