Collective dynamics and jamming in biological systems