Ryan O’Hearn hit a grand slam on his 33rd birthday, and the Pittsburgh Pirates held off the Chicago Cubs 8-7 to avoid being swept in the three-game series