Trouble shifting 2010 Ford Mustang

wont move in forward or revers only rocks back and fourth will drive if put in 1st then 2nd then 3rd

Engine? Manual or automatic trans? Mileage on the car?