You have a hydraulic system.
It's hard to guess since you didn't give much info but all hydraulic pumps that I've seen (only owned one and work on a couple) have two automotive type solinoids that control in and out. They are usually mounted on the pump valve assembly.
It's not a problem with the toggle switch at the pump. I'm guessing again but that most likely supplies power just like the inside switch, or is a power disconnect for the pump. Didn't have one at the pump on the one I had.
Check to see if the switch at the pump runs the in and out correctly. If it does then you know the interior switch is bad, if not then it's the solinoid at the pump.
If it doesn't run the pump at all, you'll have to trouble shoot the issue by checking each individual switch and solinoid.
By the way, solinoid is just another name for relay (usually higher current).
Joe and Evelyn