"To pull himself" is wrong, and "to gather himself together" is very awkward/mostly wrong. I personally wouldn't use the second one, although it's more acceptable than "to pull himself". The correct phrases are "to pull himself together" and "to gather himself".
And both of those correct phrases are, in fact, mostly interchangeable. There's no particularly pertinent difference between the two; the only thing I might say separates them is that "to pull oneself together" can denote that their current condition is more extreme.
For instance, if a person lost some papers during a business meeting and got momentarily flustered, you could tell them to gather themselves. If they're in the same situation, but they've broken into hysterics, tears rolling down their cheeks, and they're loudly cursing about how terrible their life is, then you'd say "pull yourself together!". Using either phrase in either case is acceptable, but it's slightly better to use "pull oneself together" when a person's in a really terrible condition.