No Jesus was not a socialist.
Jesus was a religious communalist. Many of the early religious communities and monestaries operated on a similar basis. It works for small like-minded communities. It is a lot more difficult for countries, even with modern communications.