As mentioned, this has had a lot of coverage here. Assuming you are talking about a line stage and not a preamp with phono, then there are several functions.
- source switching
- volume control
- voltage gain
- impedance control
- interconnect control