Sound is made up of waves traveling through a medium like air or water.
Space is a vacuum, and this lack of a medium means sound does not carry in space. There is no atmosphere to carry the sound waves.
Astronauts therefore have to use headphones and microphones to hear each other in the vacuum of space.