when i had this issue (on a 2006 MBP), it was bc the cable that connected the keyboard/trackpad had become bend and therefore wouldn't be fully inserted into its female port underneath the trackpad. I ended up having to put a piece of thick paper between the batter and the cable so the battery would push it back into the hole. I don't know how to remedy it in your situation but that might be the cause.