Get one's act  together

Meaning: start organising  oneself so that one does things in an effective way

Example: His new boss has given him one  month to get his act together, or he loses his job.