The agents of socialization include the family, religion, peer groups, economic systems, legal systems, penal systems, language, and the media. I think family is the most important because they will always be there for you and they care for you.
Protect people's rights from infridgement by the government, social organizations and more. It also helped people not to be discriminated on when voting. Hope this helps!