In a socialist country, people account for individual needs and social needs. The resources of the country go to both types of needs. Social needs include things like education, healthcare, defense, transportation and the preservation of natural resources, as well as caring for people who can't contribute to production (such as children, the elderly and the disabled).