Actually the religious leaders of the day historically were people in dealing with the government. Jesus went against this kind of atitude saying "My Kingdom is not of this world."(John 18:36) Jesus had compassion on the poor telling the disciples "whatever you do to the least of these my bretheren you do it unto me."(referring to the Jewish people and all living in the area. Meaning all poor people, essentially)
Jesus set up a system of giving to the poor to the apostles. He did, but Jesus and the apostles clearly taught the the giving was to be done by the church.(not the responsibility of the government)
There is one scripture where you could say socialism was taught. This is in Acts 2 after Peter gave his message on the feast of Pentecost. It talks about the disciples dividing their goods. This does not mean they were socialist. First of all, we have to remember the history of the passage. It was written during the time when money wasn't as it was today.(as most of you know about the FRS know this fact) Unlike today's terminology, wealth and money meant two different things. Wealth was the inheritance you owned. Money was the currency you owned. Some people could be wealthy, but very rich. Usually, in your society, if you are rich you are also wealthy. Secondly, we have to remember that the goal wasn't so that communism could occur. Communism is when there is no rich and poor.(which is impossible) The disciple, even though they divided their goods, always had different wealth when compared to the other. In fact, if you read Acts chapter 5, with Annianias, you can see communism didn't happen.