Those are called psychoactive drugs. Psychoactive drugs contains substances that can change a person's behavior by affecting his/her psychological activities and conscious experiences. For instance, the substances may impact one's sensation, memory, perception, judgment, emotion, etc.