Program: the camera chooses both aperture and shutter speed. Almost all point-and-shoots work this way, and some SLRs such as the Canon AE-1 Program offer it.
Aperture priority (A or Av): you choose the aperture for depth of field, the camera sets the shutter speed. Shutter priority (S or Tv): you choose the shutter speed, for example to freeze motion, the camera sets the aperture. The original Canon AE-1 is shutter priority.
Manual (M): you set both, usually following the camera's meter. Fully mechanical cameras without a meter are manual only.