So I have to use some driver circuit, Isn't ?
Assuming you didn't burn out the pin, that is...
Set up a simple sketch to digital write the pin you would using "directly" with a HIGH value. Then use a volt meter set on a scale to measure 5VDC, connect the black lead of the meter to ground and the red lead to the pin. It should read somewhere around 5V DC with a high level. Change the code to digital write a LOW value; the measured voltage should be around 0V DC.
If you get 4.9VDC for HIGH and 0.1VDC for LOW, that's OK. If you get anything else that isn't within a certain percentage, the pin is hosed. Buy a new ATMega.
Here's something I want to know, though. What made you think you could hook the motor directly up to the pin? I am curious from a standpoint that I am experienced with electronics, and have been playing around with them for many years (well, actually decades now - gettin' old). So I would like to know what a "newbie's" thought process is that led them to think they could hook such a thing up and it would work.
If I or others knew this, maybe we could come up with a better solution or documentation, or something - so that newbies wouldn't make this mistake - OVER AND OVER AND OVER.
Seriously - we seem to get this same kind of question here at least once a week, if not more often. What are we, the more experienced community doing wrong, that isn't plain and clear to newbies? Is there some kind of example or tutorial out there showing parts connected directly to ports/pins without and current limitations or driver circuitry? Is it because an LED hooked up this way (well, at least to pin 13 on certain Arduino designs - you can also sometimes get away with it on other pins - but its a no-no) works? Is a bad example being set by showing this simple electronic circuit? Should drivers always be shown?
I would love to see a time when newbies stop asking this question, and know why it is a bad idea, before they connect up anything - and quit killing their new Arduinos.
I doubt my dream will come true, though...