If you want to sleep but your brain won't stop talking to itself, then it could be recreational drugs. Both abuse and withdrawal from drugs have been linked with sleep disturbances and vivid or unpleasant dreams. The three most common are cocaine, ecstasy, and marijuana.