Interesting question worth exploring.
1- The phrase “hears voices in their head” is almost always used metaphorically, to imply that the person who does that is mentally ill. However, the fact is that everyone hears voices in their head. If a person is brain dead they can't hear, even though their ears are free of defects.
2- We usually hear voices of people we can see, but it is also quite normal to hear voices of people we can't see. This could be voices of people in the background, over a PA system, on the phone or on an audio clip.
3- Whatever we hear as humans has to be within the frequencies audible to humans. Certain animals can hear sounds which to us humans "don't exist" So those animals, or any human with a bit of that ability, are on the face of it “hearing voices [sounds] in their head”
4- People who talk in our dreams may not actually exist, but what they said exists, if we remember it. Mostly we "hear" conversations between others, but sometimes the person in the dream is talking to us. Whether that’s happening all the time but we’re not conscious of it or it only happens only when we’re asleep and switches off as soon as we wake up, I don’t know. Either way it is quite normal.
5- Perhaps in schizophrenia, which is clearly an instance of the metaphorical “hears voices in their head”, it's the same or similar process as above, but it’s taking place in the conscious part of the unfortunate person’s brain and while they are wide awake. The persons are in a way “living their dream” but, painfully for us observers, it’s a literal “living their dream” rather than a metaphorical one.
6- Now what if the person who “hears voices in their head” is told to strike the sea with the rod in his hand and the sea will part, and he does so, and the sea does part? What if he’s told that everything subjects itself to laws and the source of these laws should be called God and our observations confirm the first part and there is no real reason why we can’t call the source God? What if he’s given a set of laws for people to live by with the claim that it will benefit them in this life and after death, and we can see the benefits of the laws in this life and have nothing to disprove the claim about after death? Is such a person a prophet even though he’s someone who has "heard voices in their head"?