Disorders in which there is a break in conscious awareness, memory, the sense of identity, or some combination are called: dissociative disorder
in most common cases, the dissociative disorder is caused by a psychological trauma. The breakdown of patient's consciousness is the brain's effort to protect the patient from the agony that derives from their mind.