Your power jack could be lose or the part of the motherboard with the charging circuit could be damaged. Bring it into a repair shop to get fixed, but get a few opinions as to what the issue is, don't let someone tell you to replace a motherboard for $200 when it could be something much simpler.