How hypnosis works

People have been pondering over hypnosis for over 200 years, but science has yet to fully explain how it actually happens.