Dodgers hit 3 homers for 51 in June, beat Cubs 7-5