Phillies beat Red Sox, 3-1