It's most likely that some of the solder spots connecting the RAM slot to the board are broken/damaged. If either you or someone you know is VERY proficient at electrical work/soldering, you may be able to repair it. Beyond that, you probably need a new logic board, unfortunately.