o.k did you declare TRIS pin direction... if not it will not work.
or try
IF SW1 = 1 then High LED
this one will work.
remind that all pin are set to input when power is apply to PIC.
in your case you can also add TRISB.0=0 this will set Portb.0 as output.
Bookmarks