King, you are asking for a lot of information. TCP/IP and UDP ports are an IT course all in themselves. I will give you a brief heads up on some of the things you should start with.
First a port is open for a specific purpose. You mentioned port 25. This is for SMTP (Simple Mail Transport Protocol) and it is used for sending email messages. When that port is open, there MUST be a corresponding service 'listening' on that port. So if a hacker attempts to connect to that port, he/she will have to utilize the service of that port and attempt to find a method to circumvent the normal operations.
If you have port 80 (HTTP) then you would have a website listening for web page requests. Again a hacker would be looking for a way around/through your security that may or may not be implemented for that port.
Do you get the picture? Each port will have its own service and thus will have its own strengths or weaknesses.
Is your question related to a network situation or to a single PC connected to the internet? That will also make a difference in how to answer your question. If you have a network, then I would highly HIGHLY recommend you get a separate firewall which will filter all inbound traffic. There are some free firewall packages on the internet which work very well on a separate box.
But back to your question, here is a link which will give a very cursory overview of ports.
http://www.spirit.com/Resources/ports.html
If you have questions, let me know. Perhaps if I knew more specific details of your situation my answers could be more specific.
I hope this helps.