Lowe’s reports sales and earnings gains