you must use insulated wire or you will effectivly just short out your power source.  most modern electro-magnets use wire that is insulated with a thin coating of a special varnish.  this allows more winding in a given space.  varnish insulated wire is available from nearly any electronics store or catalog or from any business that rewinds electric motors
Does insulated or uninsulated wire work best for electromagnets?