To get one's act together / To pull one's socks up
Literally 'to put in the batteries'. Used to tell someone to become more active, focused, or motivated.
If you don't pull your socks up, you're going to fail.
—I need to get my act together with the project. —Yes, it's about time.
They told him to get his act together or he'd be fired.