Why is this little program of logicbricks not working?
You need to enable "True-Level-Triggering" on the message sensor. Also, make sure the massage is sent every tic on the object that is sending: also can be done by enabling TLT on one or all of the sensors. 

True-level-Triggering makes the sensor send new positive pulse every logic tic that the sensor is active, rather than just once, and the a  negative when inactive. 
It can be enabled with the little three dos icon on the left of the sensor.