Growing conditions have everything to do with flowering a fruit set. If your tree did not flower it either is not getting the sunshine it craves or the weather killed the flower blossoms before they could open. Even when a peach tree flowers, there's no guarantee it will set and mature fruit. Poor pollination, or cold temperatures at the wrong time can make immature fruits drop. As your peach tree matures I think it will set more and more fruit. Just help it maintain good health and eventually you'll be rewarded. Enjoy!