Astronauts carry air tanks with them that contain mostly pressurized oxygen and nitrogen. Their suits circulate the air to their helmets and throughout their entire suit so that they can breathe.
They breath threw oxygen tanks tied to their backs. If an astronaut was to take it off and try to breath, he/she would start to choke and die.