The distance moved and magnitude of displacement are equal only in the case of motion along a straight line. Because displacement is the shortest path between initial and find path. So, for car moving on straight road, distance moved and magnitude of displacement are equal.