Sound wave requires medium to propagate. There is no air in space, and therefore, sound cannot travel over space. However, in some cases, sound and vibration can still travel over solid objects —like spacecraft or spacesuits— that exist in space.
In some videos taken in space, things that occur in a vacuum can be heard, and flat-Earthers use it to discredit spaceflight. In reality, 1. sound can still travel over solid spacesuits and spacecraft, 2. vibrations can cause noise in microphones, 3. there is air inside spacesuits and many spacecraft, 4. the sound was heard over the radio communication system, and not directly over space.
References
- Why can we hear sound on NASA’s moon missions when they’re on the moon’s surface? I was taught that there is no sound in a vacuum – Quora
- hammer sounds on the moon? – CosmoQuest Forums
- We are told by astronauts that there is no sound in space! Yet in moon clips thrown objects against their ship made sounds, including hitting with a hammer. Are there sounds in space? – Quora