Usually pain or problems cause us to pray. This is normal and we should definitely pray at those times. In John 11, we see the pain associated with the sickness and death of Lazarus. Jesus was probably praying from the beginning about the pain of Lazarus' relatives. But the recorded prayer of Jesus expresses a different purpose - to point people to Himself.