Hmm... well, it really depends. What a gun does is launching a projectile at high speed. In case of normal firearms, the most common way to propel it is by using gas produced by a series of chemical reactions caused by the burning of a solid propellant like gunpowder. There are things like airguns though, and they work using compressed gas or air. Some guns are designed to use magnetic fields as well.