An Angel For May by Melvin Burgess
Tam is unhappy at home and often takes refuge in the ruins of Thowt It Farm. But then one day he is transported back to the Second World War. Alone and afraid, he makes friends with May, who has been rescued from a bombed-out house. She tries to persuade him to stay at the farm, but Tam is afraid of being trapped in the past forever.