The Gap brand, which lost its luster and was stuck in the doldrums for years, has become the “star of the show” at Gap Inc.