What happens if you die in space?

It depends. If you die actually in space with your spacesuit you will just float around, If you die in space without a spacesuit you will either disintegrate or freeze. If you are in a spaceship you will get driven back and buried normally