Nick Castellanos hit a grand slam, and the Philadelphia Phillies rallied with two runs in the seventh inning to beat the Los Angeles Dodgers 8-7 on Sunday.