Dick’s Sporting Goods lifted its sales and earnings guidance for the year after the back-to-school season boosted comparable sales in the third quarter.