PIC 16f628a succesfully programmed and simulated but not working on circuit
You need to set the configuration. See the datasheet 14-1. 

In particular, set /MCLR to an input or tie it to Vdd with a 10K resistor and set the clock up to use the internal RC clock and disable the WDT. 



While you can typically set this in the IDE, you should insert pragma statements to set it in your code. Here is an example (not suitable for your situation) from this tutorial.



As mentioned in the comments, you should either tie inputs to a known voltage or enable the internal pull-up resistors (see the datasheet for details). If the /MCLR pin is enabled for use as /MCLR function and you decide to add a reset switch, be sure to follow the datasheet recommendation for a series resistor of 50-100\$\Omega\$.