if that brass fitting comes out, then you've probably lost the little spring that is supposed to be under it inside the cap - won't work without that spring
as a temp fix till you can get a new cap, strip back the rubber of the spark plug wire to expose a little bit of the metal wire, then wrap it around top of plug and hold it there with a small nut
that should get you running again
You don't take the cdi apart , the plug wire screws off on a stock 2 stroke box.