Can motors (the ones you have) do not need these capacitors. They are just for the brushes on AC motors.
I hope you are not trying to put an AC Commander in the loco. You need a DC Commander, or better yet, a Cruise Commander.
The picture looks like an AC Commander, even though a better picture, from the top and showing the whole board, would be helpful.