Talking to the duck
When I am stuck on something, I sometimes figure it out just by explaining my problem out loud. The act of explaining takes my mind somewhere where I figure out the solution.
TIL (thank you Nick Davis) that in software dev this is known as talking to the duck or rubber duck debugging. Link in comments.