wiring a steam loco with a DCC decoder

I am trying to wire my Cdn Pacific steam loco with a sound decoder. It emphasizes that the brushes and frame need to be properly isolated. How do I do that? Thanks.

[#welcome]

We need a little more info than that. Make,model, of loco. Make and model of sound decoder also? Are you somewhat knowledgeable in electronics? Have you installed decoders before? Do you have a multimeter? How about a name?

Pete