What is the term for the layers of porous material through which groundwater moves and is stored?

Aquifer.

The term for the layers of porous material through which groundwater moves and is stored is "aquifer."