God is good! He has provided the way for you to connect with Him. It is a gift from Him, not based on your works. Salvation – the way into a relationship with God – is by grace, through faith alone, and not by works.
The Bible says in Ephesians 2:8-9, “For by grace you have been saved through faith, and that not of yourselves; it is the gift of God, not of works, lest anyone should boast.”