Science fiction: humanity arrived at this world generations ago when their colony ship landed, and in the pursuit of their utopian ideals, made discussing their origins or the function of technology taboo, resulting in a class of "wizards" who are trained in the use of these ancient technologies. Now, they have been rediscovered when a ship crash-lands on the planet.
Fantasy: some guy fell through a magic portal and there's wizards.
@InspectorCaracal I think more useful division between genres would be hard/soft
Hard fantasy/sci-fi explains everything, soft fantasy/sci-fi doesn't explain shit