S 320 Automatic drive shuts down after 10 m?

Hello I drive a Mercedes Benz S 320 Bj 2005… I bought it straight straight and I have the following problem…: Start the engine= OK In the gear Schlaten (D) = Ok Drive about 10 M and the gearbox is slipping off and I can’t give any more gas car turns up only up to 1000 turns!! motor shut down..after that restart again=same effect about 10 m drive 😉 help what can that be?