In 1828, 18 years before Siemens, Ányos Jedlik constructed the first electromotor in Györ.
He invented the dynamo in 1861. He did not patent his inventions, nor did he sell them. He was satisfied with knowing that his machines worked. He taught his theories and inventions at the university in Hungary.
However, the world didn't know about them. Several years later, Siemens invented both of these machines, and both were named after him.
The first electromotor, built in 1828, and Jedlik's operating instructions are kept at the Museum of Applied Arts in Budapest. The motor still works perfectly today.