Almost all hydrogen vehicles use power cells to convert the hydrogen into electricity. Hydrogen is very difficult to control burn, so power cells is the only real answer. Hydrogen is used as the chemical in a non-rechargeable chemical battery. The electric motor design does not care what type of battery is used.
Almost all modern trains are electric. The preferred way to power the electric motor in trains is through overhead electrical lines, but America has underinvested in rail infrastructure, so we are stuck with diesel generators powering the electric motors.
One nice part about pure electric vehicles, like rechargeable EV cars, or overhead electric trains, is the electricity can come from whatever source is best. A diesel train, or truck requires diesel. If diesel is in short supply, too bad, it requires diesel.
Almost all modern trains are electric. The preferred way to power the electric motor in trains is through overhead electrical lines, but America has underinvested in rail infrastructure, so we are stuck with diesel generators powering the electric motors.
One nice part about pure electric vehicles, like rechargeable EV cars, or overhead electric trains, is the electricity can come from whatever source is best. A diesel train, or truck requires diesel. If diesel is in short supply, too bad, it requires diesel.