This is an insane problem that I have had for 10+ years and never solved it: When trying to get solder to stick to metal, it won't. Not hot enough? I scorch the piece in lava heat for what seems hours, no dice. The tip of the soldering iron is so hot that solder liquifies immediately when touching it. On the metal tab? Nope, it stays solid when I heat up the tab by putting the soldering iron on it for 5 mins. The solder DOESN'T WANT TO GO ON THE TAB, no matter what I do, push it, kick it, force it, nope... I can even encase the tab when I dump a ton of solder on the tip of the solder iron, it stays away from it like oil and water. All solder beads off like water off a layer of oil. I cleaned the tab, roughed it up, no dice, nothing. It is like the damn thing is bewitched. I don't have this everywhere, but some surfaces that are clearly metal and clearly electronic conductors meant to be soldered just don't want to have any. What is going on here? And how can it ever be that I heat up the metal tab to the same burning heat than the tip of the soldering iron, giving it tons of time to heat up, the solder won't liquefy ever on it when touching the tab with the solder?
If solder doesn't stick to a metal surface, I see three major reasons for this:
The part you want to solder is not hot enough - the metal surfaces have to be brought to the melting point of the solder, otherwise it will not make sufficient contact and the solder joint will eventually fail. If that is the case: get more heat. Note also that the required thermal energy required to get the involved metal parts up to the melting point of the solder depends on the their thermal capacity: soldering to large metal parts may not be possible without additional heat sources like a heat plate or hot air.
An oxide layer keeps the solder from making contact - in this case you need to remove the oxide layer by either scratching it off or using flux to break up the oxide layer. Depending on the type of metal you might need a special flux. E.g. if you want to solder to aluminum, flux intended for use with copper doesn't work. You also need to make sure that the flux doesn't evaporate before it has a chance to do its job. Instead of applying solder to the soldering tip, where most of the flux evaporates immediately, it's better to heat up the pad you want to solder to and melt the solder on that pad.
The solder is not soluble in the metal you try to solder to - solder and metal will form a quasi-alloy at the junction, but this requires solubility. There's nothing you can do if solubility is not given, just like you can't dissolve sugar in oil.
So, not all metals can be soldered together. For example you won't find any solder that has sufficient solubility in both stainless steel and copper. Some metals - like aluminum - can be soldered to copper in general. But doing so is tricky: aluminum forms a strong oxide layer very fast. So after scratching it away you have to protect the solder point from oxygen (e.g. coat with oil) until and especially while soldering (oxide formation is much accelerated at high temperatures). This is all a big pain in my experience.
Another important point is the galvanic series: if two metals have different "nobility", the less noble metal will be corroded away in the long term. That's the reason why aluminum and copper should not be soldered together, though it is possible. Take a look at this effect for aluminum and mercury.
the solder won't liquefy ever on it when touching the tab with the solder
The melting temperature of any metal alloy depends on the ratio of the different element metals that comprise it. There is a unique ratio of metals called "eutectic" for any combination of metals where the melting point is lowest for those metals used to make an alloy. Whenever an alloy becomes contaminated during even an incredibly slight melting so as to add contaminants or change the ratio of elemental metals, the melting temperature rises unbelievably. Normally you cannot see the contamination - it is like a gremlin. It can be metal atoms from the metal you are trying to solder to (likely what you're seeing). It can be contaminates in the solder flux (very common, but that is not what you are seeing). It can come from any other source. Understanding this can help you devise a workaround. Web search for "eutectic", I suppose.
Another thing to be aware of is called "intermetallics", but this term has two different meanings relative to soldering, so be forewarned. The meaning of "intermetallic" I think you should learn about is when atoms of different metals cease to form metallic bonds and instead form very undesirable molecular or ionic bonds or any other type bond besides metallic. Molecular bonds in solder might not appear until years after the solder joint was made(!) by the migration of atoms in that joint (search "tin whiskers" if you aren't familiar with atomic migration in solid metals). Such molecular atomic bonds absolutely RUIN solder joints, so be knowledgeable which metal combinations are susceptible to this condition...and keep your work clean.
In addition to the answer by @Sim Son:
The PCB layout could be bad. This is a more common problem than it ought to be. If you attempt to solder for example a connector to the board, and all pins but one can be soldered just fine, then the problem is most likely that the ground signal pin is routed straight into a ground plane. Which in turn is a large copper area acting as a perfect heat sink - one which the solder iron will never keep up with. This is a particularly common problem with antenna connectors.
It's important that all pins connected to large copper areas of the PCB are connected with thermal relief, so that the solder iron can warm up at least the closest part enough for the solder to properly wet.
Oh, a battery tab. You are going to have to file or grind off a patch of the shiny surface, I believe that's a nickle coating but it looks like and is about as hard to solder to as chrome. Roughing it up won't help you need to get down to the substrate metal. On all the battery tabs I've worked on, you'll first come to a layer of copper, a thin layer, STOP and solder to that as it's easier to solder to than the steel that's below the copper.
I presume you have since finished your project, but I thought I would share what has worked for me to solder difficult metal parts:
I clean it first with acid. I used Muriatic Acid as I had that (hydrochloric acid). You must NOT use acid anywhere near electronic circuit boards! I was able to solder battery holder springs to the backing tab or wires this way. It flowed (wetted) as good as copper after I did this!
First clean it in acid, dip it or Q-tip. It should be clean before you apply the acid. Remove any dirt or grease first, with alcohol or Brake Clean (acetone) or soap, if needed. I did not understand if your tab was on your battery, or the battery holder... It is best if you can remove the piece you want to solder from the assembly if convenient. If you can't then thorough rinsing is imperative after you solder it.
Next, solder or tin the piece. I believe I did this still moist with acid, but I think it will still work if rinsed and dried first. I would NOT solder any wire to it at this point, just tin it with the solder over the area you need. Use rosin flux or just flux core solder. Remove any excess solder if needed.
Now clean the acid residue off! Very important. Acid rinses off with running water, but you need to remove the rosin flux residue FIRST as it probably contains acid now, and flux is not water soluble. Use alcohol or acetone. (I use denatured alcohol first, cheaper but slower to dissolve, but it doesn't evaporate before your done. And then a spritz of Brake Clean to flush the 'fluxy' film left by the alcohol.) Now rise thoroughly with water. (A few seconds suffices, unless there are crevices to penetrate).
(If you can't rinse it, I would neutralize it with a base, like clear household ammonia on a Q-tip, followed with alcohol to dry it. Clear household ammonia will evaporate with no soap or residue AFAIK.)
Now you can attach any wires or attach the part to a board as desired with regular solder and flux as needed!