Why do passengers in an automobile get whiplash in a sudden…

Why do passengers in an automobile get whiplash in a sudden stop or rear impact collision?  Why do airbags help to reduce whiplash? Make sure you explain using the Laws/Theories/Principles of Physics.  {For the airbags, there are three different ideas/laws/theories/principles which can apply. You only need to choose one of them.}