You describe the basic functions of government as socialism... Our military defends you from cradle to grave. So do the police and fire departments. 

If you're looking for examples of governments that failed to adequately provide a minimum level of existence for their people you need only look at France in 1789 or Russia in 1917.