Unless you are a specialist in differential geometry and topology, nobody's answer will be any more specific than the Wikipedia explanation. Perelman primarily used Ricci flow, as did Richard Hamilton before him. If you want a book, see https://www.amazon.com/dp/0821843281/?tag=pfamazon01-20
N.B. Please don't be so quick to bash the other posters for recommending Wikipedia. They're trying to help, and it is the most helpful source for this topic for all but a tiny fraction of mathematicians. It doesn't mean that they're "not smart enough" to answer.