A stroke affects the brain; it happens when blood flow to the brain is slowed or stopped. A heart attack affects the heart; it occurs when blood flow to the heart is blocked.