Macy’s reversed its sales slump. But can the retailer sustain the rebound?

A year ago, Macy’s Inc. epitomized the nation’s troubled department-store chains.

Sales were mired in a years-long slump amid consumers’ increasing shift to online shopping, drooping mall traffic and competition from lower-priced apparel. Dozens of poorly performing stores were closed. The chain’s…