The 3 - shutter speed - lens aperture - ISO - are inter-related and are known as the Exposure Triad.
Some call it a triangle, but that is really a poor analogy.
DSLR cameras have a built-in reflected light meter. We can center the light meter reading by adjusting one or more of the 3 parts of the exposure triad to make a properly exposed image.
In a short time we discover that once we have centered the light meter we can keep it there by adjusting any 2 of the 3 exposure triad settings. The key is that if one setting is increased, the second setting must be decreased.
As an example, if we let in more light by making the lens opening larger (larger aperture), we can get the same exposure by adjusting the shutter speed so it opens for a shorter period of time.
Another similar example would be again letting in more light with a larger lens opening (larger aperture) but adjusting the ISO so the image sensor is less sensitive to light, instead of adjusting to a faster shutter speed.
Aperture is one of the things that can affect if the foreground and background of a photo are in focus. That is known as depth-of-field, or DOF. In general, large lens openings are used to make the DOF shallow with the subject sharply focused but the foreground and background blurred. That's really good for making a portrait type photo, but not good for a landscape type photo where we want the entire photo in focus.
Shutter speed can control if things are motion blurred or not. The longer the shutter is left open, the more chance things can move while the picture is being taken.
So, if we want to take pictures of runners we use a fast shutter speed to stop the motion. For a photo of a flower arrangement made inside, we can use a much slower shutter speed because nothing in the frame is moving.
ISO is just an adjustment that adjusts how sensitive to light the image sensor is. As the ISO setting gets higher, so does the amount of electronic nosie ther is in the image. The ISO setting has a bearing on what shutter speeds you can use. As the amount of available light goes down, we can increase the ISO to keep the shutter speed the same.