To pray is nothing more involved than to open the door, giving Jesus access to our needs and permitting Him to exercise His own power in dealing with them.
God alone fully understands what each one of us needs; we make mistakes continually and pray for things which would be harmful to us if we received them. Afterwards we see our mistakes and realize that God is good and wise in not giving us these things, even though we plead ever so earnestly for them.