wont run

Ok,I have a 1992 honda civic 4dr dx with 93k on in. The following has been replaced: head gasket, timing belt, water pump, 02 sensor, distributor, plugs wires, cap and button, map sensor, exhaust, main relay, and ECM. Car is not blowing any codes and runs when it wants to. When it does run it runs great for a couple of days and then it will start by cutting out a couple of times and before you know it quits running all together. Will start back up after a while but will only Idle, and stall as soon as you touch the throttle or put it in gear