You would need to ohm test the switches and then jumper your trim limit Switch since you don’t have one. Entirely possible that the wiring has corrosion inside the wires.
Had this on my brothers boat a couple years back, center console , harnes in water filled conduit under floor up to helm had...