Agreeing that you have expertise in hardware swapping and also assuming software expertise, reinstall all the parts and perform the clean install of the MacBook using a USB keyboard and mouse and perform clean OS X install as it might suffered kernel panic or kernel extension problem. Before reinstalling clean the connectors of the trackpad and keyboard in the logic board with ipa. All the best