Is this an outside tree or potted indoor tree? When was the last fruiting?
Sometimes they need to take a break, weather, water and fertilizer all play a roll in "Orange Production". Do you have other Orange trees around it? or in the neighborhood? Is it flowering at all?
It’s an outside tree ,close to other trees. It had fruit last year. Watered weekly, no flowering.
In a pot? In ground? What zone are you In?
Extreme weather conditions can cause any citrus tree to stop producing.
Give it citrus fertilizer once a month. Also, make sure that other plants are planted to attract bees to help them cross pollinate the trees.