1995 Honda Civic No spark

Honda civic Ex has no spark, have checked the distributor and it checks good, checked the main relay, checks good, jumped the test connector at ecm when the Ign. Sw is turned on, the check engine light stays on continuously. The battery power had been disconnected earlier. Does that wipe any codes that might have been in the ecm? The car was running good and it died at a stop light idling. No spark since.

Do you have any more suggestions as to what I should check? Computer, sensors, fuses, etc.