Ports are used for other chores done by the computer they can not be closed.
Ports are not really closed or open, it is just a metaphor.
If all ports are closed you can not print, the mouse will not work, the keyboard will be locked etc.
As related to Network, and Internet activities.
Closed ports by software Firewall means that Network traffic goes through the Firewall program, and the program (as designed by the programmer) will not let the info get to the port. I.e. metaphorically the ports are closed.
NAT firewall (Cable/DSL Router) blocks every thing from coming in, the signal does not even reach the computer. It let in only info that was requested by the computer through a certain port. We call it all ports blocked but the ports are NOT blocked they just do not get any info.
More here:
Basic Protection for Broadband Internet Installation.