Numbers, I see lots of numbers.
Give your variables meaningful names. pinWhichControlsTheIceMotor would be a good one. dispensingIceWaitingForStopSwitch would be a good name too.
Change all of that, then read your program again. I'm sure it will be obvious where you went wrong.
For the pumps to work "for a couple of seconds" you must record the time which you started the pumps. Then, maybe at the top of the loop, you check if that time has exceeded your desired duration and turn the pumps off. Be careful not to reset the time - make sure it's only set once when the pumps first come on. To do that, you might keep another variable such as pumpsAlreadyRunning.