2015 e class

Hi went too start my e class yesterday put it in drive wouldn't move or in reverse turned engine off then started again and drive was ok only got the car last week abit worried.