I had this problem with my 98 civic lx. I replaced the distributor, cap, wires, plugs, fuel filter, ignition switch, and fuel pump. And it still died on me. Usually at intersections, but also quite a few times when i was cruising at 45, even 65 on the interstate. Engine would just conk out, while all electrical stuff stayed on, lights, radio, heater. It would take anywhere between one minute and a half hour to get it to turn over and come back to life. I was really at the end of my rope. Then somebody suggested I replace the main relay. Incredibly easy swap out, just had to take out the glovebox, remove one bolt, one plug, stuck the new one in, and presto, hasn't died on me since.