Strictly speaking, any electronic device that comes before the amplifier in a sound system.

In reality however it almost always refers to some kind of gain control. Whether it be in a mixer or a DI (Direct Input) box. The primary function of these is to raise the signal from mic level to line level. A good preamp will also considerably enhance the tone, giving the audio a warmer tone.