you have a sensor problem.
check for vacum leak
This one is easy. Brake booster diaphragm is ruptured, causing a massive vacuum leak, which will cause the engine to run poorly when the brakes are applied. A loss vacuum assist will make it difficult to stop the vehicle.
Continue to apply brakes: they're not just power brakes, they also function manually.
Its either your cam shaft position sensor or the crank sensor.
Engine stalling when applying brakes is usually indicative of a leaky brake booster. The brake booster uses and stores engine vacuum while driving to assist your braking effort (power brakes). When the booster's air diaphragm is leaking air, applying brakes causes a substantial vacuum leak in the intake manifold, causing the engine to stall.
Use a code reader to find out why the check engine light is on.
Try checking and /or replacing the IOC valve - that is the Idle Air Control valve.
on my 97 the cause was the cam position sensors, there are 2 it cost me $500 at the caddy dealer
vacuum leak
You will still be able to steer the vehicle, but it's going to take lots of extra effort ... same is true of the brakes - more pressure is going to be required if you lose engine power.
specify "not go into drive" does that mean it stalls or?