Somebody stole my wallet when I was getting in the train.
Somebody stole my wallet when I was getting on the train.
I don’t like to read in the train.
I don’t like to read on the train.
Use on with trains, buses, coaches, trams, planes, ships and ferries: ‘on a train’, ‘on a ferry’. We also say ‘on a bicycle’ and ‘on a motorbike’.
Use in with cars, taxis and vans: ‘in a car’, ‘in a taxi’, ‘in a van’.
Say ‘get on a train’ and ‘get off a train’, but ‘get in a car’ and ‘get out of a car’.