Spontaneous jamming in one-dimensional systems