Effective prayer requires a personal relationship with the living God:

(NASB) Psalm 119:9-16

9 How can a young man keep his way pure?

By keeping it according to Your word.

10 With all my heart I have sought You;

Do not let me wander from Your commandments.

11 Your word I have treasured in my heart,

That I may not sin against You.

12Blessed are You, O LORD;

Teach me Your statutes.

13 With my lips I have told of

All the ordinances of Your mouth,

14 I have rejoiced in the way of Your testimonies,

As much as in all riches.

15 I will meditate on Your precepts

And regard Your ways.

16 I shall delight in Your statutes;

I shall not forget Your word.”