On the critical question of the relationship between the mind and the brain, James seemed to have two distinct views.
Sometimes he was a sort of dualistic interactionist. Not of course in a Cartesian sense, in which the "ego" is a soul, an enduring substance. But in a distinct sense of his own in which the ego is a "stream of consciousness" consisting of a series of overlapping pulses of attention, each appropriating the pulses that came before it. THIS self seems to be immaterial in some of James' tellings, even a potential candidate for survival after death, hence his concern with Leonora Piper and all that. Further, this mind/self seems to interact with the brain, in both directions. James doesn't know how that is possible, but isn't concerned unduly by that, since he sees causation itself as a mystery, so brain/mind interaction isn't ESPECIALLY mysterious.
In other contexts and passages, though, James was a monist. There is only one stuff, which he calls "pure experience." The brain is one hypothesis that develops as pure experience builds on itself and becomes capable of formulating hypotheses. Matter is another, and broader, hypothesis. Likewise, an immaterial mind is a way of carving up this experiential world, too. None has any privileged status. THIS is the James who denied that consciousness exists and who gave rise to the American "neorealists" like Holt and Perry.
Questions, first: do I have this right or is my crude exegesis all wrong? Second, if I am at least roughly right, which the the two James' is the better philosopher? Or do we wish to prize the ambiguity? Third, when did the literary set seize upon the expression "stream of consciousness" anyway...?