How to turn off the dead function when the Neck motor is destroyed

as the title
The reason I need to do this is that the motor is not operating physically