There are those who know all the notes; and there are those who know the music.
To pray is to pay attention to something or someone other than oneself. Whenever we so concentrate our attention that we completely forget our own ego and desires, we are praying.