Bastian Schweinsteiger 's first-half free-kick was headed in by Miroslav Klose to put Germany 2-0 up and Schweinsteiger repeated the trick for Michael Ballack to nod in to make the score 3-1 in the second half .