Z axis no longer working on a working printer I was printing an object and it started to drag so I stopped it.
Went to move the Z-axis up so I could clear the bed and Z-axis would not budge.
I switched the printer off and manually turned the motors to get the Z up.
Cleared the bed, switched on and homed the printer. When it came to home the Z, BLTouch deployed and then nothing. Motors will not turn.
Things I tried:

Recompiled the firmware (Marlin 2.0.x)
Different motors - Motors were free from the printer, just resting on a desk so I know it's not binding or anything.
Swapped stepper driver with a known working one.

Info about the printer:

CR10s
SKR1.4 Turbo board
TMC2208 Steppers
BLTouch
Octopi to control the printer.

Output of M122 for the Z:
Recv:       Z  
Recv: Address  
Recv: Enabled       false  
Recv: Set current   1000  
Recv: RMS current   994  
Recv: MAX current   1402  
Recv: Run current   17/31  
Recv: Hold current  8/31  
Recv: CS actual 8/31  
Recv: PWM scale  
Recv: vsense        0=.325  
Recv: stealthChop   true  
Recv: msteps        16  
Recv: tstep     max  
Recv: PWM thresh.   0  
Recv: [mm/s]        -  
Recv: OT prewarn    false  
Recv: triggered  
Recv:  OTP      false  
Recv: pwm scale sum 10  
Recv: pwm scale auto    0  
Recv: pwm offset auto   36  
Recv: pwm grad auto 14  
Recv: off time  4  
Recv: blank time    24  
Recv: hysteresis  
Recv:  -end     2  
Recv:  -start       1  
Recv: Stallguard thrs  
Recv: uStep count   40  
Recv: DRVSTATUS Z  
Recv: sg_result  
Recv: stst  
Recv: olb  
Recv: ola  
Recv: s2gb  
Recv: s2ga  
Recv: otpw  
Recv: to  
Recv: 157C  
Recv: 150C  
Recv: 143C  
Recv: 120C  
Recv: s2vsa  
Recv: s2vsb  
Recv: Driver registers:  
Recv:       Z   0xC0:08:00:00  
Recv:   
Recv:   
Recv: Testing Z connection... OK
It could be caused by software or configuration issue.
Possibility 1: just worked after re-installation of Marlin
You could have Z steps/mm set to 0 in EEPROM, and did not notice that fact.
It is possible to fix this unconsciously with Marlin software reinstallation, following the upgrade procedure which included reset of EEPROM settings - like &quot;Step 4: Finishing touches&quot; described in community wiki's guide for Updating Marlin Firmware. This is described in more details in another post No stepper motor movement on Ender 3 Pro.
Possibility 2: Marlin configuration is not correct
When you recompiled Marlin, did you use already proven configuration for Marlin? When saying &quot;Motors will not turn&quot; you mean only Z? Are your other motors are still functional now after Marlin was deployed?
Among other Marlin settings, you may want to check that this line is disabled in Configuration_adv.h:
  /**
   * Software enable
   *
   * Use for drivers that do not use a dedicated enable pin, but rather handle the same
   * function through a communication line such as SPI or UART.
   */
  //#define SOFTWARE_DRIVER_ENABLE

(I took this advice from No Motor Power With TMC2209 on RepRap forum.)