Gap insurance is intended to pay the difference between a covered insurance loss and the balance of your loan or lease. If you sell a vehicle, this is not an insurance loss and thus a claim with your Gap insurer could not be placed.
Gap insurance is there to pay the remainder due on a financed car after a covered loss. A loss of this type usually is a vehicle that has been declared totaled after an accident or if the vehicle was stolen.