Khorak - I tend to agree with the others on this. I think that the perceptions people have of spears as second-rate weapons is borne out of hollywood, but also the fact that spears are cheap weapons. Therefore you can equip many men, with limited training with a spear and shield for not much. Therefore, on a lot of battlefields (medieval period i'm thinking) your spear armed troops are also your worst-trained troops, with the least motivation - and the only way to make them half effective is to give them some drilling in formation fighting. However, your sword-armed troops are generally your wealthy, armoured elite, who have been trained in using it effectively since an early age.
John Clements is one of the world's leading authorities on use of medieval weaponry. This is what he has to say on long-sword vs. pole arm combat in his book 'Medieval swordsmanship' :-
'the 'fight' of the pole-arm against the single sword is very probably the most challenging that any swordsman can face. Even in the hands of a novice such weapons can have tremendous advantage in reach and can be very quick.' and '....the brutal speed of a pole-arms thrust and its formidable ability to feint and disengage are often under-estimated'.
He gives various techniques for engaging the spear, grapples etc... - but a large slice of what it comes down to at the end of the day with any weapon is the skill of person wielding it vs the person opposing it. Two opponents, one sword-armed, one spear armed, equal ability, room to manouver, i'm going with the spear.