A bank will issue some mortgages. They could choose to wait and collect the monthly payments from those they loaned out the mortgages to. But a mortgage-backed security is basically taking the right to receive the monthly payments, and selling them to someone else
The problem is that if the borrowers default, the people who bought the MBS just lose all their money, but the banks are fine, having already made their money selling the MBS. The problem is that this incentivized banks, who would no longer be on the hook, to take on riskier and riskier clients.
Loans to those who have a high risk of defaulting
Basically an MBS, but it can contain other kinds of loans besides mortgages, including MBS's or other CDO's.
The banks could now borrow and lend out as much money as they wanted
The idea was that the market will decide what the optimal amount of leverage is
Because so many people could take out loans, there was a giant increase in demand for homes.