You could have what is called a “transient global amnesia” or TGA. It is a temporary loss of memory and awareness of what happens to you. A person who has it wakes up from that state and finds himself or herself in a place where he or she doesn't remember going to.