LvW is right in all his points. Just to try to make it a bit more clearer, if there is no DC path in the feedback, then any DC signal at the input, no matter how small (offsets etc) will charge your capacitor, leading finally the opamp to saturation and the output to the rail.
Also, when you simulate a transient usually the simulation starts from the DC operating point. That is, if your input has a dc component, then at DC the output will necessarily hit one of the rails (in dc analysis the capacitor effectively doesn't exist, so the opamp is effectively a comparator!). So when the transient analysis starts, even if your DC at the input is exactly zero (or better, equal to the offset of the opamp), you will still see a zero output. You can avoid this by resetting the capacitor when your simulation starts, or setting an initial condition on the capacitor.