We appreciate your question. The current concept of a Trinity has been around for many centuries, and so most people look at the Scriptures through this lens, whether consciously or unconsciously. It's interesting to consider how the original writers of the Bible viewed the Holy Spirit. As noted in our previous answer, the concept of the Trinity was not agreed upon until hundreds of years after the Bible was written and long after the apostles had died.
Let's first address why some scriptures appear to refer to the Holy Spirit as a masculine personage. Many people assume that the Holy Spirit is a person based on references to the Spirit as "he," "him" and "himself" in the New Testament. This confusion arises from the use of gender-inflected pronouns in the Greek language (a difficult concept to understand for those who speak only English).
Greek, like the Romance languages (Spanish, French, Italian, etc.), invokes a specific gender for every noun. Every object, animate or inanimate, is designated as either masculine, feminine or neuter. The gender is often unrelated to whether the item is indeed masculine or feminine.
For example, in French the word livre, meaning "book," is of the masculine gender and is referred to by a pronoun that would be equivalent to the English pronoun "he." And in Spanish, mesa, or "table," is in the feminine. Clearly, although these nouns have gender, their gender does not refer to books and tables actually being male or female. In the English language, in contrast, most nouns that do not refer to objects that are male or female are referred to in the neuter sense, with the pronoun "it."
We might note that in the Hebrew language, in which the Old Testament was written, the word translated "spirit," ruach, uses feminine pronouns. But the Holy Spirit clearly is not a woman.
In Greek, both masculine and neuter words are used to refer to the Holy Spirit. The Greek word translated "Counselor," "Helper" and "Comforter" in John chapters 14-16 is parakletos, a masculine word in Greek and thus referred to in these chapters by Greek pronouns equivalent to the English "he," "him," "his," "himself," "who" and "whom."
Because of the masculine gender of parakletos, these masculine pronouns are grammatically correct in Greek. But to translate these into English as "he," "him," etc., is grammatically incorrect.
For example, you would never translate a particular French sentence as "I'm looking for my book so I can read him." While this grammatical construction makes sense in the French language, it is wrong in English. In the same way, to suppose on this basis that the Holy Spirit is a person to be referred to as "he" or "him" is incorrect.
There is no theological or biblical justification for referring to the term "Holy Spirit" with masculine pronouns, even in Greek. The Greek word pneuma, translated "spirit" (but also translated "wind" and "breath" in the New Testament), is a grammatically neuter word. So, in the Greek language, pronouns equivalent to the English "it," "its," "itself," "which" or "that" are properly used in referring to this word translated into English as "spirit."
Yet, when the King James Version was produced in 1611, the doctrine of the Trinity had already been generally accepted for more than 1,000 years. Thus the translators of that version, believing the Holy Spirit to be a person, usually (and incorrectly) chose masculine rather than neutral pronouns when referring to the Holy Spirit in English.
However, this wasn't always the case. Notice that in some passages in the KJV the translators did use the proper neuter pronouns. Romans 8:16 Romans 8:16The Spirit itself bears witness with our spirit, that we are the children of God:
American King James Version×, for example, says: "The Spirit itself [not himself] beareth witness with our spirit, that we are the children of God." Similarly, Romans 8:26 Romans 8:26Likewise the Spirit also helps our infirmities: for we know not what we should pray for as we ought: but the Spirit itself makes intercession for us with groanings which cannot be uttered.
American King James Version×says "the Spirit itself [again, not himself] maketh intercession for us with groanings which cannot be uttered."
Another example is Matthew 10:20 Matthew 10:20For it is not you that speak, but the Spirit of your Father which speaks in you.
American King James Version×, where Jesus says: "For it is not ye that speak, but the Spirit of your Father which [not who] speaketh in you." Another is 1 Peter 1:11 1 Peter 1:11Searching what, or what manner of time the Spirit of Christ which was in them did signify, when it testified beforehand the sufferings of Christ, and the glory that should follow.
American King James Version×, which refers to "the Spirit of Christ which [again, not who] was in them . . ." The KJV translators did use the proper neuter pronouns in these verses.
Regrettably, later translators of the Bible have gone further than the King James translators in referring to the Holy Spirit as masculine rather than neuter. Thus the Holy Spirit is almost always referred to as "he" or "him" in modern versions. This reflects not linguistic accuracy, but the incorrect assumptions or doctrinal bias of Bible translators.
What about the second part of your question, where the Holy Spirit is described as apparently engaging in personal activity?
While at first this might seem to indicate that the Spirit is a distinct person, it doesn't really prove that at all. In the languages of Bible times, nonpersonal things were sometimes described in personal ways and as having personlike activities.
For example, in Genesis 4:10 Genesis 4:10And he said, What have you done? the voice of your brother's blood cries to me from the ground.
American King James Version×God says to Cain: "What have you done? The voice of your brother's blood cries out to Me from the ground." Here Abel's shed blood is described as having a "voice" that "cries out" from the ground. Yet clearly this is figurative language, as blood has no voice and cannot speak.
Similarly, in the book of Proverbs wisdom is personified as calling aloud and crying out (Proverbs 1:20-21 Proverbs 1:20-21  Wisdom cries without; she utters her voice in the streets:
 She cries in the chief place of concourse, in the openings of the gates: in the city she utters her words, saying,
American King James Version×). Proverbs 8 describes wisdom as crying out, standing on a high hill, calling to men, speaking, having lips and mouth, loving and being loved, having children and having accompanied and rejoiced with God. Yet obviously wisdom is not a person and does none of these things.
In Habakkuk 2:11 Habakkuk 2:11For the stone shall cry out of the wall, and the beam out of the timber shall answer it.
American King James Version×stones and timbers are described as talking to each other. In Psalms 65:13 Psalms 65:13The pastures are clothed with flocks; the valleys also are covered over with corn; they shout for joy, they also sing.
American King James Version×pastures and valleys are said to shout and sing. Yet these things clearly do not happen literally.
At times the Bible applies such figurative language to the Holy Spirit, ascribing activity to it as though it were a person. Yet, as noted in our earlier answer, the Bible also describes the Holy Spirit in ways that show it is not a person.
In some cases where the Holy Spirit is described in a personal activity, we should understand this as God using the Holy Spirit as the power or agency through which He acts. Consider, for example, that if a man's hand takes hold of a book and lifts it, this does not make the hand a separate person. The hand is merely the agency through which the man is acting.
Even so, the Holy Spirit is the agency through which God—Father or Son or both—acts. Of course, the Holy Spirit is far more than a hand. It is the very power, mind and life essence of God—pervading infinity so that by it God is omnipresent.
The reference to the Holy Spirit as a Counselor or Advocate is a personification that provides a good analogy of part of the Spirit's function in the lives of true Christians. Yet, many passages show the Spirit as the power of God, not a separate person.
For example, in Matthew 1:20 Matthew 1:20But while he thought on these things, behold, the angel of the LORD appeared to him in a dream, saying, Joseph, you son of David, fear not to take to you Mary your wife: for that which is conceived in her is of the Holy Ghost.
American King James Version×we see that the Holy Spirit is not a distinct entity, but God's divine power, the agency through which He worked. Here we read that Jesus was conceived by the Holy Spirit. However, Jesus continually prayed to and addressed God the Father as His Father and not the Holy Spirit (Matthew 10:32-33 Matthew 10:32-33  Whoever therefore shall confess me before men, him will I confess also before my Father which is in heaven.  But whoever shall deny me before men, him will I also deny before my Father which is in heaven.
American King James Version×; 11:25-27; 12:50). He never represented the Holy Spirit as His Father.
Jesus likewise never spoke of the Holy Spirit as a divine third person. Instead, in numerous passages He spoke only of the relationship between God the Father and Himself (Matthew 26:39 Matthew 26:39And he went a little farther, and fell on his face, and prayed, saying, O my Father, if it be possible, let this cup pass from me: nevertheless not as I will, but as you will.
American King James Version×; Mark 13:32 Mark 13:32But of that day and that hour knows no man, no, not the angels which are in heaven, neither the Son, but the Father.
American King James Version×; 15:34; John 5:18 John 5:18Therefore the Jews sought the more to kill him, because he not only had broken the sabbath, but said also that God was his Father, making himself equal with God.
American King James Version×, 22; etc.). The Holy Spirit as a person is conspicuously absent throughout Christ's teaching. Of particular interest in this regard are Jesus' many statements about Himself and the Father, especially when He never makes similar statements about Himself and the Holy Spirit.
We should also consider that, in visions of God's throne recorded in the Bible, although the Father and Christ are seen, the Holy Spirit as a third person is completely absent. See, for example, Acts 7:55-56 Acts 7:55-56  But he, being full of the Holy Ghost, looked up steadfastly into heaven, and saw the glory of God, and Jesus standing on the right hand of God,
 And said, Behold, I see the heavens opened, and the Son of man standing on the right hand of God.
American King James Version×, Daniel 7:9-14 Daniel 7:9-14  I beheld till the thrones were cast down, and the Ancient of days did sit, whose garment was white as snow, and the hair of his head like the pure wool: his throne was like the fiery flame, and his wheels as burning fire.  A fiery stream issued and came forth from before him: thousand thousands ministered to him, and ten thousand times ten thousand stood before him: the judgment was set, and the books were opened.  I beheld then because of the voice of the great words which the horn spoke: I beheld even till the beast was slain, and his body destroyed, and given to the burning flame.  As concerning the rest of the beasts, they had their dominion taken away: yet their lives were prolonged for a season and time.  I saw in the night visions, and, behold, one like the Son of man came with the clouds of heaven, and came to the Ancient of days, and they brought him near before him.  And there was given him dominion, and glory, and a kingdom, that all people, nations, and languages, should serve him: his dominion is an everlasting dominion, which shall not pass away, and his kingdom that which shall not be destroyed.
American King James Version×and Revelation 4-5 and 7:10. Jesus is repeatedly mentioned as being at the right hand of God, but no one is mentioned as being at the Father's left hand. Nowhere are three divine persons pictured together in the Scriptures.
Even in the final book of the Bible (and the last to be written), the Holy Spirit as a divine person is completely absent from its pages. The book describes "a new heaven and new earth" (Revelation 21:1 Revelation 21:1And I saw a new heaven and a new earth: for the first heaven and the first earth were passed away; and there was no more sea.
American King James Version×) wherein "the tabernacle of God is with men, and He will dwell with them" (verse 3). Christ, the Lamb of God, is also present (verse 22). The Holy Spirit as a separate person, however, is again absent—another inexplicable oversight if this Spirit is the third person of a triune God.
This is why Paul states in 1 Corinthians 8:6 1 Corinthians 8:6But to us there is but one God, the Father, of whom are all things, and we in him; and one Lord Jesus Christ, by whom are all things, and we by him.
American King James Version×that "there is only one God, the Father, . . . and one Lord Jesus Christ . . ." without mentioning the Holy Spirit as a divine person.
We must not cling to long-held religious traditions if they contradict the Scriptures. Our beliefs must rest solidly on the teachings of the Holy Bible. Jesus said, "[God's] word is truth" (John 17:17 John 17:17Sanctify them through your truth: your word is truth.
American King James Version×).
Our free booklet Who Is God? contains much more information on the true nature of the Holy Spirit as explained in the Bible. It also addresses various other scriptures commonly thought to support the existence of the Trinity. We hope interested readers will request a copy.