Thanks for your answer
After doing several tests, I came to the conclusion that the Atmega16u2 that makes the USB connection was defective, so I decided to change it. Later it was possible for the PC to recognize the ultiboard, and so I loaded the UM2+ firmware.
After this I managed to get it recognized by CURA and I updated the printer again. Things were looking good until I got to the same point I was at at the beginning, the “Z switch broken, ER_05” error.
After reviewing several alternatives, including loading several different Marlin firmwares, I realize that the error is due to the fact that there is no movement in any of the X,Y,Z axes.
I tried to move the steppers from the printer menu but got no response. I measured some voltages on the A4988 drivers, I found that it actually has 24V and 5V, the connection to GND is ok, the connections to the steppers are OK. The printer is capable of heating the bed, heating the extruder, showing different options on the display, turning on fans, but it does not move, none of the steppers work, not even the extruder one.
Any additional suggestions you can give me? Is it possible that I need to change the A4988 so that the steppers can be moved?