Use on for large vehicles which you can stand and walk around in (a bus, an airplane, a train, a metro/subway car, a cruise ship, a boat). Use in for (usually) smaller vehicles or crafts that you have to enter and sit in (a car, a taxi, a truck, a helicopter, a canoe, a kayak, a small boat, a carriage, a rickshaw).