If the solder doesn't melt, you have water in the pipe. You need to take it all apart, drain any water out, stick some bread in there to keep any more from getting close, put the sucker back together and solder it again. If you have a 1.2 Jiggawatt torch and you can actually melt solder with water in there, steam will come out through the joint and make little holes in the solder and it will leak anyway.
If the solder doesn't stick, you lost your flux and/or charred the outside of the pipe. Take it apart, scrub the sufaces again with your wire brushes and re-flux, put it back together and try again.
The whole process of soldering a joint shouldn't take more than 15-30 seconds. After that, start over... it will NEVER work.
I was doing some plumbing and my father in law came over to "help" (since I had never soldered pipes before, and supposedly he could do it). Well, we couldn't get the solder to stick either. He was just FRYING the pipes, saying "these pipes should be red hot, that's why it's not sticking"... he kept the torch on there for minutes. The whole pipe turned black. He lit a stud on fire. Then he blamed the solder. "Oh you bought the wrong solder, that's it! This is the wrong stuff!!" So to humor him, I take him down to True Value. All they have in stock is the stuff I bought (at Home Depot). So we go back empty handed.
Eventually I said, "OK let's just forget this... I'll cap this up and try again tomorrow". The next day I read some stuff online *again*... and practiced in the garage and found the secret. I am now the master. Like I said...
1) Clean well
2) Flux well
3) Heat it up (make sure it's heated all around evenly)...
4) As soon as it's hot enough to melt the solder (right about when the flux starts boiling) feed in a bunch of solder and then leave it alone.
Cut a bunch of pieces and practice.