Since compasses work by pointing along magnetic field lines, this means that there must be a magnetic field near the wire through which the current is flowing.
The Sun's energy gets to the Earth through radiation, which you can prove just by standing outside and letting the sun's rays warm your face on a sunny day. Every object around you is continually radiating unless its temperature is at absolute zero, at which point its molecules completely stop moving.