How three prior pandemics triggered massive societal shifts