But as the housing market collapsed , and people couldn 't cover their mortgages or sell their houses , the bonds lost value and , therefore , the banks that held them lost capital , and the whole pyramid started to crumble .