How do you handle a team that is not working well together?

How do you handle a team that is not working well together?