Take it back and they'll replace it. There was a story posted and it could have been on MR that shows the new lightning cables and connectors for some reason suffer from corrosion. The article also indicated that Apple is replacing them free of charge.
You could also call Apple support and they will probably send you a new one.