Pence homers twice, Hamels has strong start in win