I had a problem like this a few weeks ago, turned out to be the wiring that supplied the pump with power had shorted out. Replaced with thicker wire, all good now.
Or, my alarm relay shorted out once too, cutting power to fuel pump, it would prime then die. Hope that helps...