Basically, when you view the histogram and find the image is being over or under exposed you then consider what adjustments to make with regards to the aperture, shutter speed or ISO. Which of these you adjust depends entirely on the circumstances and what you're trying to shoot.
For example...