You can say "I am in a train", but that means your location is inside the train. You use "on a train" when you're using the train for travelling. I have heard "on an airplane" and "on a bus", also, when people are talking about travelling (example: "I can't talk right now; I'm on/in a bus").
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.