Ryan Braun hit a tiebreaking two-run homer in the fifth inning Friday night for the host Milwaukee Brewers, who went on to beat the New York Mets 3-1 in the opener of a three-game series.Braun finished 3-for-4 for the Brewers, who snapped a two-game losing streak. The Mets have alternated losses with wins over the last seven games.The teams traded runs in the first inning, when three of the Mets’ first four batters reached against Brandon Woodruff before Wilson Ramos laced an RBI single. But leadoff batter Lorenzo Cain got the run back for the Brewers with a home run on the third pitch he saw from New York starter Steven Matz. It was the fifth career leadoff homer for Cain.The Brewers stranded five runners over the next four innings before finally cashing in against Matz in the fifth, when Yasmani Grandal drew a leadoff walk and Braun followed with a homer to straightaway center field.That helped make a winner out of Woodruff (4-1), who allowed the one run on six hits and two walks while striking out seven over five innings.Alex Claudio tossed a hitless sixth and Junior Guerra threw a perfect seventh before Josh Hader earned his eighth save by striking out five over two scoreless innings. After a perfect eighth, Hader ran into trouble in the ninth, when he gave up a leadoff double to Michael Conforto and walked Ramos before striking out J.D. Davis, Todd Frazier and Amed Rosario.