To restore fellowship with God, the Christian must judge himself, repent, and confess his sins to the Lord.
*
For this cause many are weak and sickly among you, and many sleep. For if we would judge ourselves, we should not be judged. But when we are judged, we are chastened of the Lord, that we should not be condemned with the world.
-1 Corinthians 11:30-32
As many as I love, I rebuke and chasten: be zealous therefore, and repent.
-Revelation 3:19
If we confess our sins, he is faithful and just to forgive us our sins, and to cleanse us from all unrighteousness.
-1 John 1:9