A train was travelling on the railway with a passenger on it.