Common item is the fuel pump itself Graham so I would look there first. Thoughts are that by moving wiring about you are interrupting power momentarily and that alone pulls the lazy pump into life.
Try first disconnecting pump wiring then applying direct feed of 12 volts and check it always runs.