How do social rules regulate behavior? What is likely to happen when a person violates the social rules of their culture?

How do social rules regulate behavior? What is likely to happen when a person violates the social rules of their culture? Do you have to be mean or disturbed to inflict pain on someone just because authority tells you to? Why or why not?