Jesus said, “God is Spirit, so those who worship him must worship in spirit and in truth” ( John 4:24). It is true that God took on human form in the person of Jesus, who of course was male, yet God does not exist as a material or physical being. So in that sense he is neither male nor female as we know the human sexes.
At the same time, God has chosen to create and use imagery of himself that is both masculine and feminine. Of course he refers to himself as Father and Jesus as the Son of God, which are both masculine imagery. Yet Jesus spoke of himself in feminine imagery when he said, “How often I have wanted to gather your children together as a hen protects her chicks beneath her wings, but you wouldn’t let me” (Matthew 23:37).