You're giving too little information. You don't know that ONLY the keyboard, mouse & monitor are not working.
If it's ONLY those things that are not working, your hard disk light will flicker as if it's loading the OS; there will be Windows booting music from the speakers (if your OS is Windows); if you listen closely, you'll be able to hear hard disk access sounds; and so on.
If you don't have any of those signs, your computer is not booting up and it's NOT ONLY the rear ports that are not working. You have a more serious problem.
When you ask for help with a problem, please try to give as much detail as possible - hardware configuration, OS, signs and symptoms. Those who are trying to help you should not have to drag out those details from you bit by bit.
Don't make assumptions unless you are very sure of your facts. When you say that the CD/DVD drives are working, do you mean that they can open and close? They can do that as long as they are receiving power. It's not proof that everything else is working.
Did you try cleaning the RAM contacts?