Collective dynamics and pattern formation in systems of communicating cells