Another way to say "locomotives used to be used" is "locomotives were formerly used".