Selective attention functions as a filter to keep the brain working optimally as it goes about its daily activities. Therefore, it makes the human brain focus on a particular task at a time; blocking out distractions.
While playing and paying close attention to the soccer match, John became heavily concentrated on the game. Thus, the brain engaged his 'selective attention' which made him lose the ability to feel the pain from the injury he sustained during the game.