Turning from sin and living a righteous life is impossible before being saved because prior to being saved, you don't see your life as so sinfull nor unrighteous.
Jesus calls us just as we are.
Accept Him and receive Him and you're saved.
THEN your eyes are opened to sin and unrighteousness.