Aside from a few very controversial ancient texts, there is no historical record of Jesus at all. Certainly nothing that speaks to his activism or miracles. The most logical explanation is there was a real-life political agitator who got blended with the myths of Horus, Dionysus, etc, and we ended up with the stories we know today.
Prayer is just a way to bargain with an uncaring universe. If you do the right things and burn enough goats, maybe, just maybe, you will be spared some hardships. Doesn't work.