I liked Foundation and just about all the other pre-1970 Sci-fi books that will be mentioned in this thread, but the Sci-fi book that changed my life was the 1909 book “The Machine Stops” by E. M. Forster, which I read as a boy.
“https://manybooks.net/book/137318/read#epubcfi(/6/6[html3]!/4/40/1:0)
I haven’t read this. Looked up details and I’ve reserved it at my library