Alek Thomas drove in five runs and Lourdes Gurriel Jr. capped with 23rd home run of the season to lead the Arizona Diamondbacks to a 12-5 comeback victory over the Colorado Rockies.