Both "recovered" and "pulled himself together" are possible, but the former is the only one I'd use without more context. He could pull himself together if we had just been told that he'd been (metaphorically) falling apart in some fashion.
One definition of "recover" means "to get better after an illness or injury". It has many other meanings.
You can pull yourself together after succumbing to all sorts of negative conditions: sadness, anxiety, alcohol or drug addiction, etc.