P - Program Auto: in this setting you can control all the other settings (ISO, white balance, etc.) besides aperture and shutter speed.
S - Shutter Priority: in this mode, you can control the shutter speed and the camera will automatically change the aperture settings accordingly.
A -...