When miners are mining, they get a block template (a pre-determined block that only needs the right hash) from a central authority shoved down their throats. Or they can create one themselves.
When they find the right hash for this block, they will continue hashing, but with a different block template filled with the next pending transactions.
2/3