A Ouija (roughly pronounced "Weegee") board has the alphabet, numbers, and a few short words (yes, no, goodbye) written on it, with a pointer called a planchette perched on top of it. At least two people touch the planchette and ask a question of the board. The pointer then may start to move, apparently on its own, and, it is hoped, provide an answer. Ouija boards were invented in 1891 (and 'Ouija' is a trademark of Hasbro) and the idea the planchette was moved by spirits started in 1913.
The idea is that if there are spirits present, the planchette will move under their power, or someone with one hand under the table and a magnet, or someone a bit away with a remote control. It's usually one of those three. Before The Exorcist, the Ouija board was considered a harmless toy depicted as a source of fun.
It's believed the planchette moves because of the ideomotor phenomenon; the people touching the pointer are moving it without realizing they're doing so.