Could you provide more context?
It's hard to tell this way. Both sentences are correct, depending on the context:
-I just came from New York!
-Really? How was the(your) flight?
But, you could not say 'How was THE flight?' if the flight hadn't been mentioned before.