In this study the electromagnetic theory and quantum mechanics are utilized to find the resistivity in terms of electric and magnetic susceptibility in which the electron is considered as a wave. Critical temperature of the wire at which the resistance vanishes is found. In this case the resistance being imaginary which leads the real part of the resistance to real zero at critical temperature and the material becomes super conductor in this case. If one considers the motion of electron in the presence of inner magnetic field and resistance force, a new formula for the conductivity is to be found; this formula states that the material under investigation becomes a superconductor at critical temperature and depends on the strength of the magnetic field and friction resistance, and the substance conductivity is found to be super at all temperatures beyond the critical temperature.