Has it though?
Has a country ever really given it a go? Russia tried their own version of Communism but it wasn't a Karl Marx system, in fact as Russia was so poor it was the opposite of when it needed to come into being. China's Socialism is certainly working economically, in fact they are out Capitalising America at the moment and America is resorting to Socialism to combat it (Tariffs and subsidies).
In the future when technology takes care of our basic needs and things lose their value, perhaps a system similar to communism will be a viable alternative for some of society, if not the majority. Until utopia arrives we need capitalism to drive technological advances, sure governments fund most of the basic research, but where the rubber meets the road in deploying and evolving technology, we still need the incentives and competition that capitalism provides.
What we really need is to reduce or eliminate the political corruption that capitalism spawns and the lobbying and outright bribery it finances. Corruption tilts the playing field in favor of the rich and Adam Smith spoke of the need for government regulation, most right wing propagandist ignore this aspect of Smith and focus on the "hidden hand" of capitalism. Capitalism evolved with mankind and reflects our nature and what motivates us to action, need and greed get most of us out of bed in the morning and off to work. When most people have no work to go to then things will change because they can and the vast majority of people will want that change. Technology and trade make us richer year by year while needing fewer people do provide for our needs and a tipping point will be reached, as long as we can maintain democratic government.
That is why the republicans are willing to go totalitarian and divide and conquer the masses with social division over complete bullshit, their right wing ideology is in deep trouble. The current American republicans are composed of con men who serve the rich, and racist suckers who they pander to, and make promises they won't or can't keep. It's all about promising the fools they will "git the brown folks" while shoving as much money and tax breaks to the 1%. The republican base doesn't care about their own country for Christ's sake, much less about economics, all they want to hear is how their white privilege will be insured, they don't care if they burn their own country down over it either.
At this point in history political corruption and social division are the issue and it spawns the inequality that fuels much of the discontent. Capitalism can and does work best when political corruption is keep in check with effective laws, in America
the democrats H.R.-1 is only the first step to controlling it. Lots of countries use a form of socialism, a successful blend of capitalism and socialist programs, corruption is the problem and is what is driving economic disparity, in America it uses, social division, racism and bigotry to maintain this status quo.