That appears to be a permanent magnet DC motor, sometimes called “toy motors”.
There is no way to tell from that photo how many volts it expects but the general range for something that size would be 1.5 to 9VDC.
Connect a battery to the terminals on the end opposite the shaft. It might not start spinning until it gets above 3 volts or so.
Normally, such motors have a wide operating range and as long as they don’t get too hot they will work fine with higher than expected voltage with a reduced life.