If you've already tried the steps provided in this support guide:
If your iPhone, iPad, or iPod touch won't charge - Apple Support
and you get no help, since your iPX is still on warranty, have it inspected at your most convenient Apple Store or Authorized Service Provider:
Apple - Find Locations - Location Selector
Regards
Giulio