Space between particles in the soil is "porosity". When these spaces are interconnected (which they are not always, or not fully) then there is "permeability".
Darcy's Law describes the relation between flow, and porosity and permeability. However viscosity of the fluid plays a part as well. It is a complicated subject.