Distance is a scalar and equals to the total distance travelled.
Displacement is a vector and equals to the change in position. Final position - Initial position. The relationship between distance and displacement is that it is motion. The object is in motion and changes his position over time.