Any locomotive can pull a limited amount of carriages. When you choose a freight contract, you see a locomotive with the settings icon above it and the description of the contract. When you use the gear icon, you'll be able to choose a locomotive and add the carriages you need to it.