Connect one end of the charging cable to the bottom of the iPhone and then plug the other end into a wall socket. Let it charge for about 2 hours. If you think you have a defective iPhone or charging cable, take both to a nearby Apple Store to have them fix the problem or switch them out for you.