Therefore confess your sins to each other and pray for each other so that you may be healed. The prayer of a righteous person is powerful and effective. - James 5:16
James let's us in on a little secret about how to make your prayer life powerful... and effective. That secret is confession.
In other words, get honest with God and don't pretend to be righteous if you aren't doing the work.
Once you clear the air and get real - the prayers you pray for self and others can be powerful and effective .
GO DEEPER: 2 Chronicles 7: 13-16