The first one indicates how long an action lasted, so it'd be correct to say he read the book for an hour. The second one says that one action happens before the other action takes place, so "it's the past of the past· and the verb tense used to express this is "past perfect" (Continuous) He' d been reading the book for an hour, when his friend came in. The third one is correct even if you put "for an hour" Hope I helped.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.