car dies after will not start but engine cranks on 2001 Mercedes-Benz E320

15-20 car dies.engine cranks but no start. after cooling off engine starts drive another 15-20 mi.all gauge readings normal. no engine codes

Asked by for the 2001 Mercedes-Benz E320
I suspect something electronic either a circuit board relay or sensor is heating up and going open, when it cools down it makes a circuit again and operates until it warms up again.
I would plug in a scan tool that reads live data (monitors sensors) driving along you can read air flow into the engine crank and cam angle sensor data, fuel trim ect..., when the engine cuts out and stalls you can then crank the engine and see if the sensors are giving an input to the computer in your car or not.
2 more answers
try dist. module they have a bad habit for such things.
crank sensor maybe