There are many examples of miracle stories attributed to historical men of importance within the lifetimes of those who knew them. The emperor Vespasian was said to have healed a blind man in Alexandria by spitting into his eyes (compare Mark 7:33), as well as healing a man with a withered hand by touching it (cf. Mark 3:1-5, 5:25-34), as reported by Suetonius (Vespasian 8.7), Dio Cassius (Roman History 65.8), and Tacitus (Historia 4.81), the latter citing the reports of "eyewitnesses". There are many miraculous stories about the second-century AD rabbis in the Mishnah (completed c. AD 200), written within the lifetime of witnesses of the fourth, third, and possibly the second generation of the tannaim: (1) R Eliezer and R Aqiba b Joseph instantly filling a field with cucumbers and then gathering them all together with a single command (b. Sandedrin 68a; cf. m. Sanhedrin 7.11, y. Sanhedrin 7; 25d), (2) R Eliezer tearing a tree out of its place a hundred cubits by a single command and making water flow backwards (b. Bava Metzia 59b, y. Kil'ayim 3,1; 81c-d), (3) R Gamaliel II calming a storm at sea with a prayer (b. Bava Metzia 59b; cf. Mark 4:35-51), (4) R Joshua b Hananiah being challenged by Emperor Hadrian to prove to him the power of a lion, and after praying a lion roared and all the pregnant woman in Rome miscarried and the walls of Rome fell (b. Hullin 59b), (5) R Simeon b Yohai, who was "experienced in miracles," exorcizing a demon from the Emperor's daughter (b. Me'ilah 17a, b), (6) R Judah h Nasi healing the dumb sons of R Yohanan b Gudgada by prayer (b. Hagigah 3a), (7) R Pinhas finding a lost pearl from a Saracean king swallowed inside a mouse who coughed it up (y. Demai 1; 22a; cf. Matthew 17:27 and the tale of Yosef Moqir Shabbat finding a lost jewel in a fish's mouth in b. Shabbat 119a), and so forth. The similarity of these stories with the miracle tales attributed to Jesus in the gospels is quite apparent. The stories are also quite legendary; there is no evidence, for instance, that the walls of Rome ever fell in the reign of Hadrian.
And of course many of the miracle stories of Jesus draw on OT traditions as well, such as the stories of Elijah and Elisha. That the messiah ought to work miracles was an expectation found in earlier Essene writings: "For the heavens and the earth shall listen to his Messiah and all which is in them shall not turn away from the commandments of the holy ones....For he will honor the pious upon the throne of his eternal kingdom, setting prisoners free, opening the eyes of the blind, raising up those who are bowed down....For he shall heal the critically wounded, he shall revive the dead, he shall send good news to the afflicted, he shall satisfy the poor, he shall guide the uprooted, he shall make the hungry rich" (4Q521 2:1-13; cf. Isaiah 61:1 and Luke 4:18-19, 7:22). The miracle stories thus have a theological objective.