No current through AC optocoupler
You've got three problems. 

1: no current limit on the MOC3021 LED. With 5V there the LED inside the MOC3021 will not last long, so add 220 ohms in series with the input.

2: not enough voltage on the output. The output is is a phototriac which has a forwards voltage drop of 1 to 1.5V - 
to light the blue LED you want 3V or so and a resistor to limit current, 9V with a 470 ohm resistor in series would be a good starting point.

3: the output is a triac: once triggered on, it will continue to conduct until something else stops the current - using an AC supply to power the output side circuit would help here.