The title might catch your attention. That's because that's how we've always been taught. In reality, it's an inaccurate expression. Some authors also compare the Holy Trinity to water in its different forms: liquid, solid, and gas.
This comparison is invalid because it portrays God as solid water, God the Son as liquid water, and God the Holy Spirit as vapor. This is how the Holy Trinity is explained. This is incorrect. Now let's see how it really is. God is the Cause, His Son the Effect. And the Holy Spirit? It so happened that the Son of God fell asleep. God extended Himself in the Holy Spirit, who is the voice that speaks for God and whose function is to awaken the sleeping Son of God. He is the Comforter; He will take you from nightmares to happy dreams through the Atonement, which is carried out by Jesus. He is the one who atones (undoes mistakes, lack of love (sin), etc.).
So we have God (Cause), His Son (Effect), and the Holy Spirit. The Holy Trinity.