Extrude only along z-axis while face selected

As I hit e when I have a face selected (doesn’t matter which select mode I have on, like vertex or face etc.) the face only extrudes along z axis. If I extrude vertex, this doesn’t happen. I think I accidentally pressed something since the extrusion was working normally few hours ago.

How do i get the face extrusion to move freely again when I press E?

Try pressing Z once or twice to revert. I think the default is to extrude in the direction of the face normal.