I can think of two reasons right away . . .
1). There's no air in space. Nothing to fill your lungs with,
so you can't scream.
2). Even if you had a lung full of air and could scream, sound
needs something like air to travel through. With no air in space,
the sound from you couldn't go anywhere.