Even though there are 64 squares and only 32 pieces, those squares can run out and your pieces can be left out without legal moves and getting trapped. It is a frustrating situation when you can't save a piece from being taken because you didn't foresee it would get trapped a few moves before.
Sometimes, even with a pawn move, you can take away your opponent's safe squares. Even queens are vulnerable to be trapped because any trade for a lesser piece is dangerous.
The Queen is such a powerful piece and it controls so many squares, it is hard to believe it can be trapped, but with the correct tactics and a positive position, every piece is trappable.
Black just moved a pawn to d6, thinking everything was safe in this "quiet" position. Can you find a way to trap a Black piece?
Attacking the bishop with the b file pawn forces it to retreat to the only safe square of the board for it, and now a second move traps it, can you see it?
Black's bishop is attacked and has no safe squares to retreat. White will win material.