causes of the government shut down

what were the causes of the government shut down of 2013 and could have been done to avoid it
Paper instructions:

the history of government shut downs, how long they lasted, what was the reason, and how long they lasted