Maria, this is called transient global amnesia. If it happens again, you should talk to your doctor. It's usually harmless and hits 25 persons out of 100000, generally after 50.