A couple of examples follow:
When lightning struck her, she was closing a door. (past continuous; unfinished action)
The door is jammed, and my father is closing it. (present continuous; unfinished action)
She locked the door and left. (simple past; finished action)
Please note that close is not the same as lock.