The Garden of Eve by K.L. Going

Evie reluctantly moves with her widowed father to Beaumont, New York, where he has bought an apple orchard, dismissing rumors that the town is cursed and the trees haven't borne fruit in decades. Evie doesn't believe in things like curses and fairy tales anymore--if fairy tales were real, her mom would still be alive. But odd things happen in Beaumont. Evie meets a boy who claims to be dead and receives a mysterious seed as an eleventh-birthday gift. Once planted, the seed grows into a tree overnight, but only Evie and the dead boy can see it--or go where it leads.