This is something all Christians experience from time to time, but God has not moved away. It only feels like He has.
The answer to overcoming a perceived distance is to remember that this is a feeling and feelings can lie to us. We must remember what we know to be true. Jesus has promised that He will never leave or forsake us (Heb 13:5).
It’s usually a circumstance, emotional struggle, confusion, or some other challenge or difficulty in one’s daily life that causes one to feel that God is far away. Continuing to seek God in prayer and reading the Bible will increase one’s knowledge of His presence, and restore a closer communion with Him.