Traditionally, have we used two methodologies to regulate social behaviour: Religion and the state. Both attempt to create a common set of moral obligations, both have their carrots and their sticks — heaven and freedom, and hell and prison, respectively.
One uses commandments, the other uses law — one uses guilt, the other punishment.
Societies which reject religion tend to become more statist — think atheist communism, the Democratic party of the United States, and the largely secular welfare states of Europe — while others, more religious, accept a smaller state — think Republicans, or the Amish, or the religious fundamentalists who worked to end state-enforced slavery in the 18th and 19th centuries.
How well have these worked? When Western religions had the most control, you had the Dark Ages, the Middle Ages, witch burning, the Inquisition — and a deep susceptibility to totalitarianism. Marx famously predicted that communism would only take root in post-industrial societies, which turned out to be the opposite of what happened. Russia fell to communism — Russia, arguably the most religiously devout country in Eastern Europe. Italy, the home of Catholicism, fell to fascism as its popes praised Hitler and his National Socialists. Germany, by far the most religious country in Western Europe, was the most struck by the virus of dictatorship.
The United States is by far the most Christian of the Western nations — and despite being protected by two great oceans and having friendly neighbours to the north and south, has been at war for the majority of its history, has pursued a relentlessly invasive foreign policy, and is responsible for the deaths of tens of millions of people around the world.
Religion may give you personal comfort. The state may fill you with national pride. But neither institution has solved the problem of morality.