Why is my D4 light blinking and not starting? on 1994 Honda Accord

I've had this car for 6 years, the D4 light started blinking when I would fuel up, I would sit at the pump from 30min to an hour flipping my ignition back and forth and taking battery cables off to reset the computer, it would eventually crank. Well it seem to have gotten worse, first thing to come to my mind was my fuel pump was going out, plus when the D4 would blink I would not hear the fuel pump. Well I got a fuel pump, we drop the tank and the fuel pump was fine but it wasn't getting power like it was supose to. Fixed that and the light is still blinking, will turn over but will not start.

1 answer
check fuses and check or replace main relay