Yes, quite a lot of illegal drugs will lead to memory loss, especially cocaine and heroin. Both of them will slow down the breath, causing cerebral hypoxia. If the situation lasts for 5 minutes, the victim will suffer from recoverable brain damage including memory loss.