I would say lucky was on the spanish side. If the game was replayed many times over, I would think the expected winner to be Polska...
Anyway, Spain won the rebounds and TO battle. This gave him the opportunity to make more shots and thus points. Both of them have a random factor on it, while the CT of Polska should have help on this topic, it seems to me that spanish luck won this one.
I don't know that stamina of Polska-Spain players but the difference ocurr in the last quarter and it's quite clear who was keeping them more time on court.