Pop the case open and look at the mini-USB connector on the Pi (The Power In connector), especially the solder joints on the connector. With the cable in but unpowered, gently raise and lower it a few mm. There should be no movement on the pins on the main PCB.
The socket isn't that robust, and the solder joints can crack, leading to oddities.