Human nature resists
This is an inevitable condition resulting from basic human nature. Some States have realized this and have attempted to modify human nature to fit the needs of the State. This has been done through propaganda, social pressure, "re-education", and even through elimination of dissenting elements in a Darwinian process. The closest that Socialism has come to working is in the Chinese Social Credit system. Even there, it has been necessary to introduce significant elements of Capitalism, and we have yet to see if it will survive over a longer term.
Although Capitalism is primarily an economic system, it promotes and depends on particular social conditions where it will function best. Among these are a strong respect and support for private property, a fair system of justice and rule of law, and recognition of the value of individuals and personal rights.
What makes them work
It is individuals that create the wealth of goods and services that provide value to others. It is a legal system that defends and supports the rights of those individuals to engage in productive activities, and to be free from coercion, theft, or State appropriation, and it is respect for property that enables individuals to reap the rewards of their labors. To the extent that these elements are expressed and supported in a society, that society will prosper.
Socialism, on the other hand, considers that the worth of individuals is in their value to the State. Those who serve the State best are rewarded, while others serve mostly as sheep to be shorn, or cattle to be slaughtered; of value only collectively.
While in most forms of Socialism businesses and productive enterprises are nominally owned by individuals, in reality they are subject to the direction and control of the State. This allows the State to take credit for any successes, while having a convenient scapegoat to blame for failures. Property can be taken by the State at any time where people are simply caretakers who can be removed at State whim.
Even law serves the State. Whatever the State desires is enforced, and "justice" is whatever serves the interests of the State. Laws that are enforced for one group are ignored for others. This preserves a state of anxiety and fear among the people that helps to keep them under control, as they never know what to expect or when they might be accused or punished.