Welcome to Android Central! First, make sure the charging port is clear of debris by blowing it out with a can of compressed air. If the problem persists, see if you can try a different charging cable. Since the phone is so new, you might just want to bring it back to the store and ask for a replacement.