Is the socket you plug the power into loose?

Thoughts:
Power supply has gone bad and is not putting out right.
Battery is bad.
Now if the power socket is busted, you need a new motherboard.