Transmission

My problem is my Mercedes E-350 is shaking when I press on the gas. Than my transmission is not working. I was driving and it would go anymore, I pushed on gas and car wouldn’t move