Nearly all railway vehicles use brake energy. Older trams wasted the energy with heating resistors. Newer ones feed back energy back to the grid if possible. Otherwise banks of supercaps are charged to allow going short distances without power (like old town where contact wire is not desirable).
http://www.bombardier.com/en/transportation/products-service...