The Apostles did attempt to establish a communal living structure, as outlined in Acts; however, this was done as a means of illustrating what Heaven could be like. You will also recall, the effort fails on several fronts. Almost immediately, converts refuse to surrender all of their wealth. When questioned, they lie about having done so. Secondly, the effort is not sustained over time. You may argue that it sets a precedent for monastic life; but, the public at large simply did not embrace this concept over time. Nor could they. Remember, the premise was to illustrate Heaven. It spite of the well intentioned effort, that can not properly be accomplished mortals.
Please refer to my earlier statements on the morality of choice. Socialism, even in the case presented in Acts, requires a mandate, enforced by law, not conscience, in order to perpetuate.
On a closing note, when our Lord offers the wealthy man the opportunity to become an Apostle, he tells the man to sell all that he has, and follow. The Lord does not demand that the man surrender all that he has, and hand it over to Him, that it may be distributed for the common good. He allows the man to choose the path taken. Socialism, regardless of the form of government administering it, offers no such choice.