The 3S-FE ECU is a robust unit from the golden era of Toyota reliability. But 30-year-old wiring gets brittle. Before you blame the ECU, check your grounds and your corrosion.
This is based on the engine family with a Japanese or European market Toyota ECU (often 22-pin + 16-pin connectors).