What are the social functions of schooling and the role of schooling according to the three sociological theories of education?