2009 MacBook no longer boots after SSD upgrade

Solution 1:

Take out the SSD and put in the original hard drive, see if it will work then. If not, take it to an Apple Store. They will run a diagnostic to see what's wrong. Don't tell them you've opened it yourself and don't leave in the SSD otherwise they're gonna tell you the warranty is voided. BTW in case you're a smoker, I would also recommend cleaning the inside.

Solution 2:

The suggestion in Mark D's answer is a good one as it helps you eliminate one very obvious possibility, although it's not clear to me whether you may have already tried this as you state I also tried using the SSD/HDD but it still won't turn on.

Although you're not sure whether the physical power button is faulty, I would still try resetting the SMC to determine if this has any impact.

IMPORTANT!

It's not clear which 2009 model MacBook you have, as some models had a built-in battery and others had a removable battery. Below are instructions for both scenarios - so choose the one that applies in your case!

Built-in battery instructions

  1. Shut down your Mac
  2. Unplug the power cable from your Mac
  3. For 10 seconds, press and hold at the same time the shiftcontroloption keys (on the left side of the built-in keyboard) and the power button
  4. After 10 seconds let go of all keys and the power button
  5. Plug in the power cable
  6. Turn your Mac back on with the power button.

Removable battery instructions

  1. Shut down your computer
  2. Disconnect the power cable from the computer
  3. Remove the battery
  4. Press the power button for 5 seconds and release
  5. Put the battery back in
  6. Reconnect the MagSafe cord (or power cable)
  7. Turn your computer back on with the power button

Once you've taken the appropriate steps, see if you can power up the MacBook. If you can, I would then also reset the NVRAM as follows:

Reset the NVRAM

Older Macs had what's called Parameter RAM (PRAM), newer Macs use Non-Volatile Random-Access Memory (NVRAM). Here’s how to reset this in your MacBook:

  1. Shut down your machine. Yes, a full shut down, not just logging out.
  2. Press the power button and then press the commandoptionpr keys. You have to make sure you press these keys before the gray screen appears or it won’t work.
  3. Hold those keys down until your Mac reboots again (i.e. a 2nd time) and you here the startup chime.
  4. Let go of the keys and let your Mac reboot normally.

Note: When you log back in you may need to readjust some of your system preferences (e.g. speaker volume, screen resolution, startup disk selection, time zone information, etc).

After trying the above, let us know how you go.