Passengers are facing disruption to rail services after a person was hit by a train.