Nebulae are made up of elements like hydrogen. It is formed by cold gases, forming clouds, or by a stellar explosion. Therefore, the correct answer would be:
Matter from space can (D) cool to form a nebula or matter from a star can (C) explode to form a nebula.