It's great to be curious. Now, be curious about the text.
The books of the Torah took their current form in the Persian period (The 6th to 4th century BCE), yet much of the legendary history they recount happened at least 500 years earlier. That means that the stories were passed down orally, like the legends in Homer, for centuries before being written down. There may well be some historical truth there (there WAS a first temple, as there WAS a city in the spot where the legendary Troy was supposed to be), but the text is not history.
Similarly, the Gospels were written some 40 - 80 years after the death of Jesus, when it's unlikely that anyone who'd met him when they were an adult would still be alive. Stories were handed down orally until then, and the inclusion of new material in the later Gospels (hello, adorable story about shepherds in the Book of Luke!) is probably a literary fabrication.
If reading the books gives you comfort and spiritual enlightenment, that's fine. But they meet the criteria for legends. (Here's one take on that: https://bookriot.com/the-difference-between-myth-fairy-tale-and-legend/ ).