Come near to God, and He will come near to you. James 4:8
If you’re not as close to God as you once were, guess what? It wasn’t God that moved. No matter where you are or what you have done, if you move closer to God, He promises to move closer to you. You don’t have to change first. Move first and then change will be the result. Start talking to Him again. Spend time in His word. Open your heart to Him and He will open His heart to you.