Answer is: pasta has a higher energy content.
Main component of pasta is flour and main component of flour is starch.
Starch (carbohydrate) is a polymeric carbohydrate consisting of a large number of glucose units bonded by glycosidic bond. Starch is a white, tasteless and odorless powder that is insoluble in cold water or alcohol.
Food rich in carbohydrates has high energy content, because human body can digest it very fast.
Orange has a lot of cellulose (also carbohydrate), but human body cannot digest it.