Other contributors have said "What does spongey layer does in leaf?" is the same question as "What is the function of spongey mesophyll in a leaf?" If you believe that these are not asking the same thing and should be answered differently, click here
What is the function of spongey mesophyll in a leaf?
responsible for storing energy and nutrients until they can be transmitted to the veins in the leaf and sent elsewhere in the plant where they are needed