Is there a common term for all the vehicles that move on rails, an official word perhaps?

I think that trains and trams fell into this category. Do you have any suggestions?
Sorry, Lana, nothing springs to mind for the vehicles themselves. The closest I can come is 'rail transportation'.
Thank you anyway, rail transportation wouldn't fit into the sentence, so I just avoided the expression.