A train has collided with a crowd of people.