The first sentence combine the ideas correctly because, to explain the way the parts of a group related to each other (in this case, worked well together), the writer emphasize the members themselves, and not the team as a whole. In the second sentence, the idea is that the members won the first place, and not the team, <em>which is contraditory because it was the </em><em>team </em><em>that was in the contest.</em>