Why does my op-amp circuit output a rectangle wave form instead of sine?
Because your circuit is missing negative feedback, the input is driving the op-amp into saturation. First at the high rail. Then at the low rail.
Edit: in your second picture, either your gain is too high, or your supply voltages are too low. Again, the reason for the near square wave output is saturation of the op amp.