You could think of it based on the kinetic model of matter. Since the temperature is the same, the molecules have equal amount of kinetic energy to push out the walls of the container.
But at a higher pressure, or smaller volume, you'll notice that the molecules come closer together. If the molecules are sufficiently close, it becomes a liquid. There is, of course, much more to this explanation but it might be better if you read up on it.