I have connected the i phone cord to the phone and charging adptor, it either isn't getting charged or the battery won't hold a charge I don't what is wrong.
What device? If it's a older one, it could be the battery has reached its end of life... Could also be a defective charger, or cable... I'd try different charger, and a different cable... then seek professional help in diagnosing any possible device issues.