engine misses on 1990 Toyota Camry

sometime the car will start, run, and idle well sometimes not. sometime when car is shut off it will not start back, like it is flooded. replaced air filter and helped for a while but problem returned. replaced plugs, wires, rotor button, and cap didnt help.

Asked by for the 1990 Toyota Camry
Is there an EGR valve on it? Is it working correctly?
What about fuel pressure?