Welcome to Android Central! I assume you also tried different wall outlets as well, or confirmed that the wall outlet you were using was functional right?
Check to make sure the charging port doesn't have any debris in it. Use a can of compressed air to blow it out. If it's clean, then the port might be broken. An alternative charging method would be wireless.