When I was young, my grandfather gave me this book.
When I had been young, my grandfather gave this book to me.
When I was young, I was gave this book by my grandfather.
When I was young, I was given this book by my grandfather.
My grandfather was given this book when I was young.