Terror Train (1980)
Terror Train is a 1980 slasher film, directed by Roger Spottiswoode and starring Jamie Lee Curtis, Ben Johnson and David Copperfield. It follows the members of a college fraternity who played a cruel prank on a shy kid named Kenny Hampson three years ago. They are having a costume party on a train; unbeknownst to them, someone has boarded the train with them and is killing them all one by one.
More at Wikipedia.