If your pump came with a speed switch on the pump, which it looks like your did, you simply wire as in the diagram on the pump with the speed switch. One hot wire to common, one hot wire to the middle wire from the switch, and ground to the green chassis screw.