Scientists believe the brainstem is still functional even though the brain is dead. And people experiencing nde,believing they been to the other side are experiencing r.e.m. which stimulates the brainstem to wake up and experiencing dream state mind.