<P> During Lucifer's confrontation at Stull Cemetery with Michael (using Adam as his vessel), he beats Dean, slamming him against the door of the Impala . As Lucifer is about to deliver a fatal blow, he catches a glimpse of a toy soldier stuck in the car's ash tray triggering Sam's memory of jamming the soldier in there as a boy . The sudden arousal of Sam's childhood memories and those of the bond of brotherhood he shares with Dean allows him to overpower Lucifer and regain control of his body . Sam takes out the rings, reopens the portal, and prepares to throw himself in . Having been temporarily banished by Castiel, Michael returns and attempts to stop him, but Sam jumps in, pulling Michael also with him--trapping both Lucifer and Michael in Lucifer's cage . The ground closes up with a stunned, devastated Dean watching . Later, it is shown that Dean fulfills his promise to Sam and has gone back to find Lisa . As he sits down with her and Ben for dinner, a street light outside goes out, and underneath it inexplicably is Sam secretly watching the three with a blank look on his face . </P> <P> Almost a year has passed since Sam went to Hell, and he reappears to Dean after saving him from Djinn poisoning . Upon their reunion, Sam reveals that he has been back this whole time searching for whatever force brought him back and hunting with his mother's side of the family, the Campbells, led by their grandfather Samuel who was also resurrected . While hunting with Sam again, Dean quickly notices how different he acts . These include using a baby as bait, allowing a child to go through a torturous treatment to gain information, and allowing Dean to become a vampire . After facing the goddess Veritas, Dean and Castiel question Sam's behavior . Castiel then reveals that Sam's soul is not with him and is still trapped in Lucifer's Cage . It is revealed that Crowley brought back Samuel so that they could help him find Purgatory, the afterlife of monsters, and that Samuel has been working for him . Crowley then states that if Sam and Dean help him he will return Sam's soul, but if they do not help him he will send Sam back to Hell . Although Sam still retains his memories, likes, dislikes, and is capable of making rational decisions, he is completely without emotion and appears almost inhuman . </P> <P> Upon Dean's request, Death retrieves Sam's soul from the Cage and returns it to him at the end of the sixth season's mid-season finale "Appointment in Samarra". He gives Sam's mind a "protective wall" to prevent any negative effects it might have on him otherwise, but Death also warns him not to scratch at the wall he has built, or his memories from Hell will destroy him . However, Castiel, in an attempt to distract Dean and Bobby while he attempts to enter Purgatory, brings down the wall, ultimately causing Sam to remember his time in Hell . In the season finale, Sam spends much of the episode attempting to recoup his shattered soul, including the memories of his soulless self and tortured self . Once complete, he reawakens, though still struggling with the visions of the Cage that his soul endured . </P> <P> After Castiel's actions result in the release of the Leviathans--God's first creations--Sam is left struggling with the restoration of his memories of his time in Hell, even if he remains dedicated to helping Dean and others stop the Leviathans . During this time, he has a reunion with his old Kitsune friend, Amy Pond, who has become a mortician feeding on the dead to sustain her, although Dean nevertheless kills her when he discovers that she has been killing to help her sick son . As Sam experiences hallucinations of Lucifer taunting him with the idea that he is still in Hell, he initially tries to control them by focusing on wounds he sustains in the real world, but matters become worse when he is forced to rely on information from the hallucination to save Dean . As his mental state becomes worse, Sam foregoes sleep to stop his visions, but is sent to an asylum when he is hit by a car while running away from Lucifer . While trying to find a healer who may be able to repair Sam, Dean encounters an amnesiac Castiel, who, when restored to his full powers, sacrifices himself by taking Sam's mental damage . Sam is shown to possess great guilt about this and rejects hope that Bobby's ghost may be helping them out after an attempt to communicate with him fails . Sam is initially happy when it is shown that Bobby's ghost is there helping them, but changes his mind after Bobby shows more and more signs of becoming a vengeful spirit . During the final battle at Sucrocorp, Sam rescues Kevin Tran--a Prophet who can read the Word of God--and is horrified to hear of Dick Roman's plan to kill all the skinny people in the world through poison in their coffee creamers . He and Kevin head to the lab where they find Dick Roman being killed by Dean and Castiel . After Dick explodes, Dean and Castiel disappear and Crowley appears and takes Kevin, leaving Sam completely on his own, not knowing Dean and Castiel are now trapped in Purgatory . </P>

Who brought sam winchester back from the cage