William Contreras connected on a go-ahead, three-run shot, Colin Rea pitched into the seventh inning, and the Milwaukee Brewers defeated the Pittsburgh Pirates 6-3.