Have you got a 10k pullup resistor on MCLR and a pulldown resistor, such as 4k7, on PORTB.0?