lets just disregard that it used to work...
swap the stepper drivers between Y an Z, does the fault stay Z or move to Y.
NB never unplug stepper drivers or stepper motors while they are powered. This tends to kill stepper drivers.
re upload your firmware... sometimes it just doesn’t upload correctly
check your endstop status (M119) make sure it doesn't think that z max is triggered (it wont move up if it is)