1. Open the Membership record
2. Click View Links/Gifts
3. Highlight the gift to be unlinked
4. Click Break Link

Once the link is broken, the gift can be linked to the correct membership.

NOTE: The link for gifts to dropped memberships can not be broken