Javier Baez and Anthony Rizzo homered for the Cubs to take the lead over the Pirates and held on for a 4-2 win.