When you are inside or on top of a train, you are moving at he same speed as the train. So when you jump, you come down where you jumped. Inside the train, the air is also moving with the train. But outside it is not, so, when you are on top of a train, the wind will push you toward the rear of the train.