How did Michael schofield die in prison break?

He electricuted himself in order to break Sarah out of prison. It's pretty complicated; you have to see the final two episodes.