rule bilge pump wiring
You should have a bilge pump switch that is marked automatic and manual. One of the wires on the pump is wired directly to the motor and the other runs through the float switch to the motor. These two wires are run back to the legs switch. and the switch wired either through its own breaker or fuse directly back to the battery or else run to a breaker on your panel.
The switch typically includes a wiring diagram although I found that I had to sketch one for myself in order to keep the color coding straight as I snaked the wires around the boat.