In addition to Michael's answer, "space" tends to be used for things relatively close to Earth. The planets are out in space.bits also a less technical term
"Cosmos" has the feeling of what is often called "deep space", covering objects much further from Earth. It's more technical and is often used when talking about the science and physics of the objects.