Sometimes, when God feels distant from us, it is because there is an obstacle keeping us from God. It can be something we are putting before God, a fear, a person, even a dream or hope. For me, it was fear. Fear that I was not good enough, that I was a disappointment to God, and that I could never amount to anything of worth. It is best to go before God and ask if there is anything you are holding back. He will put it before you and when you give it to Him it will break down the wall.
I also struggled with going back and forth, and learned from a message at a worship conference, that it was because I was only giving half my heart to God. I was not fully the world's or fully God's, I was torn between serving the flesh and serving the spirit. I learned that God did not want half of me, He wanted all of me. He could not transform me if I only gave Him half of what I had. I had to die to myself before I could live for Him.
He says in Jeremiah 29:13, "And ye shall seek me, and find me, when ye shall search for me with all your heart."
A video that has helped me is on Youtube by Pastor William Chung if you search "The meeting place increase your longing for God".
God bless you, my sister in Christ.