Sandoval: 'Pagan's home run woke up our offense'