Roles of Joule heating and spin-orbit torques in the direct current induced magnetization reversal