Ignoring ISO for a moment...the two main things that determine the right exposure on a photo are aperture and exposure time.
What you use here is firstly dependant on the amount of light in a scene,
A wider aperture, lets in more light, and a longer exposure time, lets in more light.
If I was to take a landscape shot at dusk, there is less light, so I would have to either....open up the aperture nice and wide, OR, lengthen the exposure time.
Now doing either of these has a consequence on the shot. If I want sharp focus throughout the shot...Using a wide open aperture, of, say, f4 means that depth of field will be short, and not all my shot would be infocus. Normally if its a scenic landscape, I would require it ALL to be in focus.
That would mean I have to 'stop down' the aperture...to, say, f11 or f16 maybe.
The knockon effect of that means, smaller aperture, which means less light...As it's dusk, I still need more light in the photo, to expose it correctly.
Therefore the only other option available to me, is to increase the shutter time. So if 1/30s is too slow, I may use a 2 seconds or so, to get the correct exposure.
However, this can have an effect on anything moving in the scene. So if there are people in the scene, they will be shown as blurs over a 2 second exposure, but less so over 1/30s. The same with water, if I want blurry water, I would use a long exposure, but if I wanted 'frozen' water, I would need a quick exposure.
So the whole thing is a trade off. All photos require a certain amount of light, some more than others. How much light you require is determined by your camera meter. But depending on the effect you want...you need to determine how that light gets into your shot, and it's a trade off between aperture and shutter speed.
Some people require a long shutter speed if they want to blur water.....some people may want to freeze the water, so will need to open up the aperture instead.....
This is a very simple explanation of it, which doesnt take into account ISO (film speed / sensor sensitivity), which you can increase when you need both a small aperture AND a fast shutter speed.
So again, it's all a trade off.
Hope this helps.