Example

When closed surfaces are created with WKT, they are treated as areal rather than solid. To make them solid, you need to use ST_MakeSolid.
Areal geometries have no volume. Here is an example to demonstrate.