When you have a gas in a container, and you decrease the volume of the container, you can see that the molecules will speed up with the following analogy (which comes from statistical thermodynamics - the study of the thermal properties of gases by looking at the behavior of an ensemble of molecules).
If you have a ball bouncing back and forth between two walls, with perfectly elastic collisions each time, it will maintain its speed indefinitely. That is a "gas in equilibrium".
Now imagine that you move the walls towards each other at a velocity $v$. If the ball is initially moving towards the moving wall at velocity $v'$, then after the collision it will be moving in the opposite direction with a velocity $v'+2v$. At every round trip, it will pick up more speed - and the round trips will happen faster and faster as the ball is going faster and the walls are closer together.
The mean force that the wall feels depends on the number of collisions that it encounters, and the speed of the ball when it hits. Both of these go up - that means that the force on the wall (the pressure) goes up.
Similarly, the velocity of the ball goes up: in a gas, this means that the temperature goes up.
Now we're ready for an equation. We write for the volume of the gas $V$, pressure $P$ and temperature $T$; then we need the ratio of the heat capacity "at constant volume" $c_V$ and "at constant pressure" $c_P$; we call this ratio $\gamma = \frac{c_P}{c_V}$. For a diatomic molecule like oxygen, this number is very close to $\frac{7}{5} = 1.4$ (see wikipedia)
Now we can write an expression for what happens to the pressure and temperature when we compress a gas without allowing heat in or out - we call this an "adiabatic" process:
$$PV^\gamma=\rm{const}$$
So if you know the initial pressure and volume, you can compute the final pressure from the above equation. Similarly, if you want to know the final temperature, you can find it from
$$\frac{PV}{T}=\rm{const}$$
and the above equation.