I know...but im asking, these states have origins in Marxist thought but then they fuck it up and morph into Juche or Oligarchy as in Russia's case or China's capitalist regime etc.
This is an incredibly complex subject, but a lot of it comes down to historical circumstance setting the stage and internal dynamics carrying it from there.
The goal of socialism is to overcome the capitalist mode of production, with workers owning and controlling the means of production directly, and theoretically therefore being able to produce and distribute without needing to rely on a market system. Communism - a stateless society - is theorized to develop out of socialism, as socialism develops out of capitalism. However, socialism isn't something that's pre-planned out. Marx simply believed it would result from the dialectical struggle between worker and capitalist. People who tried to work out every detail of how socialism would function were considered utopian because their plans were usually pretty fanciful.
Therefore, for socialism to happen, a society must first go through capitalism, because capitalism creates the circumstances under which the dialectical worker-owner conflict emerges and brings about the mode of production that makes collectivized worker cooperation possible.
Almost none of the countries that attempted to bring about socialism even went through a fully completed capitalist phase. Most of them were still agricultural or even feudal to some degree. In Russia, the vast majority of the population were peasants, not proletarians, and the proletariat was decimated by the revolution and the civil war. With their power base depleted, the Russian Communist Party entrenched itself as the center of society, organizing and operating everything to try to rebuild from the ground up. It didn't help that the Bolsheviks viewed themselves as having a historical destiny, so anyone in their way was a counterrevolutionary to be dealt with.
Without advanced technology to figure out how to efficiently allocate resources without relying on a market system (I would argue we still haven't reached that point), the USSR, in its attempt to steamroll its way to socialism and build up its strength against capitalist invasion, went to drastic industrialization measures, requiring brute force control by the government to ensure that society cooperated. This effectively became what many socialists refer to as a form of state capitalism, with the state acting as the owner and the workers as...the workers. The government claimed it was democratically elected, and therefore that the workers were in control, but that was largely a sham.
By virtue of being the first, largest, and most powerful socialist state, the USSR managed to impose its philosophy and methods on other socialist movements worldwide, with variations growing out if it (Maoism as an adaptation of Stalinism to use the peasants as a power base, etc.). And with the Cold War, it became important for the big powers to prop up buffer states and allies for defense, leading to smaller dictatorships like North Korea. In the 80s China and some other states (like Vietnam) charted a different course and embraced market liberalization, but seeing that the USSR was torn apart when they opened up the ability to speak with dissenting voices, they decided to keep the authoritarian state apparatus. From the point of view of the Chinese ruling class, they have the best of both worlds - state and economic power. North Korea, on the other hand, pressed on with its juche autarky which required being separate from the world market.
At this point, it's just an issue of those in power not wanting to relinquish control. But it's not something inherent to socialism as a concept.
didn't it work at least for the Paris Commune?
The Paris Commune lasted for a few months.