Why do people comply with the law? Is their compliance based on fear (deterrence theory) or respect (social bonding or social control theory)?

The criminal justice system relies on both criminal justice and criminological theories in the development of policies and practices.

From the perspective of criminal justice and criminological theories, why do people comply with the law? Is their compliance based on fear (deterrence theory) or respect (social bonding or social control theory)?