Position 1: quite a common trick in the opening because the Bg4 is undefended and vulnerable, after Bxf7+ Kxf7 Ne5+ Ke8 Qxg4 white has won a pawn and black can no longer castle. This is a sizeable advantage for white.
Position 2: This is an open position with Queens and rooks on the board. In such a situation initiative is very important because these pieces can generate big threats. The main point of Qd7 is to prevent Rxb7 by white. If white gets this move he can attack f7 forcing a move to defend that square and getting some chances despite being down a couple of pawns. Qd7 consolidates everything nice and safely, doesn't lose a pawn, and black should be winning fairly comfortably with the extra pawns.
Position 3: Ne4 creates the severe threat of Nd6+. If hxg5 Nd6+ the black king is forced to d7 which is a horrible place for it and white can then recoup material with Nxf7 winning back a pawn and forking the queen and rook. This is a good trade off for white.
I'm looking at a past couple of games and trying to figure out why these moves are considered best? Please can someone explain what I'm missing?