Most likely a huge natural disaster followed by famine. I think this would happen before the collapse of humanity as a whole do to war or lack of establishment. No mater which government fails we would find a new order so I couldn't imagine that being our end. Like I said some mega natural disaster making food impossible to grow and then starvation.