Could be the high limit switch is stuck closed, wire disconnected or just not working.
The adjustment bolt as shown in the photo, slides to the left as the roof is raised. When the head of that bolt hits up and pushes in the plunger switch on the high limit switch, the top stops moving up.
If the plunger switch on the high limit switch is stuck closed, roof will not go up. If one or both of the two wires are disconnect, broken, etc., then the roof will not go up.
If the switch itself has failed...switch won't go up.
Personally, I would check the wires, then see if the plunger switch is free to move back and forth in the high limit switch. Possibly bypass both wires to the switch.
More info such as wiring to the high and low limit switches from the main switch.