could be the signal wire from the CAS to the ECU. I had broken wire in one of my early S13's that would periodically make connection and the car would run just fine, then out of the blue I'd go over a speed bump or hit a pot hole and it'd completely cut out.
Are you getting spark? If no spark and no fuel it's something between the ECU and CAS and my bet would be on the wiring.
https://www.nicoclub.com/service-manual ... _240sx.pdf
according to the FSM hosted here, EF & EC 100, you should be checking continuity between the white pin at the CAS and 22/30 at the ECU. Black - 31/40
The left side shows the ECU connector from both sides, front and back (front would be the side that connects to the ECU)
The right way to check continuity of the signal wire between the CAS and ECU is to disconnect the battery negative terminal (dont want to short anything out with the ECU) remove the ECU, then use a digital multimeter (DMM) set to resistance and check for continuity (on Ohms) between the pin at the ECU and opposite end at the distributor plug. You should get very low resistance if it's good. If it's OL (overload) or very high it's broken or not making connection. It helps to have a second pair of hands to hold one end in the engine bay and watch the DMM while you move the harness around with your hands. You should be able to find the break in the wire if that's what the cause is.
Those old wiring harnesses get pretty brittle and the smallest nicks in the insulation can lead to oxidation and issues with them. Good luck wiring gremlins can be a real pain.