Simon used sorcery to bewitch the people. The nature of this sorcery is not described.
Simon was likely just the same as a modern magician, performing tricks. These guys were pretty sophisticated, and their audiences were easily impressed. It’s interesting to read about the clever engineering that went into the temple of Artemus. Those priests put on quite a show every night.