How can I spawn a sphere in C++?

BTW, you did not spawned sphere but created actor with sphere component and mesh component