A well-functioning team is a group of people who complement each others' skill sets while pushing each other to do better. Everybody is pushing to achieve the same outcome.
Their goals, while they may seem very diverse, all align and work to achieve the larger objective.