A US woman has died, given birth while her heart was not beating and then been brought back to life by doctors to find she is a new mother.