To do well at work, your Sims need to be in a good mood every day and use the hard working actions whenever possible. Occasionally opportunities will present themselves for advancement, and these should be taken at every chance. There are also random encounters, such as a bad or good event taking place at work.
Your Sims can retire from work when they reach a certain age – complete with a pension (even as a Criminal, bizarrely!).