Hilbert space approach to the quantum mechanical three-body problem