A stroke can occur when blood flow to the brain is blocked or there is sudden bleeding in the brain.