It depends what you understand by 'socialism'. I don't know any example of working socialism in large scale. In small scale however it might work. Look at family - it is a socialism at work
First christians also might be counted as such socialism at work or maybe even communism. The issue is that those first christians formed communities willingly. They were not forced like most people in history that lived in socialistic or communistic states.
In large scale people start to think as follows: if everything is common, then if I will start to work very hard, I will still get the same wage, because my added value divided by ten millions of other citizens will not change anything. Ever more: if I will not work at all or even will steal something, I will still get the same - because when my "substracted value" will be divided among all citizens, it will be nothing. And the system was doomed - people had no impulse to work harder as it is in capitalistic economies.
In small communities or in communities were people had motivation to work hard this system might work - as it works in our families

In large scale people start to think as follows: if everything is common, then if I will start to work very hard, I will still get the same wage, because my added value divided by ten millions of other citizens will not change anything. Ever more: if I will not work at all or even will steal something, I will still get the same - because when my "substracted value" will be divided among all citizens, it will be nothing. And the system was doomed - people had no impulse to work harder as it is in capitalistic economies.
In small communities or in communities were people had motivation to work hard this system might work - as it works in our families
