If it looks ok and your switch as Peter said is ok, then check for a broken wire at the point where you touch it, this can be caused by Vibration of the pump when in use.
TIP
If the cable looks like it has a good connection at the pump and your connection to the battery is good, when you wobble the wire and it cuts out and then starts again, this is a sure sign of a broken wire.