If you travel 30 miles somewhere and then come home again your distance is 60 miles. Your displacement is 0 because it is the ending position minus the beginning position, which are the same place (home). In other words, displacement is a vector and distance is a scalar.