Here are the keys.
1. Get a good flux to "tin" the cables. Good solder with a flux core can be substituted, But if it just isn't working, then buy the flux.
2. Use a "heatsink" to suck the heat away from any electronic component that could be damaged. Picture a heavy alligator clip or clamp on a bare wire to picture what I mean.
3. Use a Gun, but work fast. Lots of heat applied quickly is less likely too damage components than a poor soldering system that just isn't getting the job done.