I suspect the Mass Airflow Meter, on my other E36 the Mass Airflow Meter was faulty and the car wouldn't idle, I have to accelerate/rev it. You can goggle ' Bmw E36 what does all sensors do', there's a forum that will tell what sensor does what on these car, you can try the stomp test if it works. Best of luck