The Sunday school answer is James 4:8 :
Draw near to God and he will draw near to you. Cleanse your hands, you sinners, and purify your hearts, you double minded.
But let’s give that some practical application, shall we?
I know this feel, greyface. More than you know. It’s something I’ve struggled with a lot in residency, even with frequent church attendance and weekly Bible study groups and (mostly) daily Bible reading.
Communication is key. If you have a human relationship that is damaged, you have to communicate with the person to repair it. It’s the same with God. You have to tell him your struggles and how you feel far away. Ask him to bring you back. Then listen to what he tells you to do. Read his word and digest it; meditate on it. Do some journaling. Trust him to get you through little things and he will build your trust in him for the big things.
You can go through all the motions of Christian life and still feel far from God. Heck, all I did before starting a relationship with Christ was do the motions. Reading your Bible and fellowshipping with other believers may help keep you from straying farther, but ultimately, God brings you back to Himself. If you open yourself up to him and pray (and listen!) to him, he will bring you back to himself. Then the motions will no longer be a method to keep you from straying, but rather will be an outpouring of your relationship with Christ.