Trackpad not functioning correctly after replacing

After replacing the trackpad, some pointing functions are not working, like dragging a window, the trackpad click sometimes does not work after restarting the Mac. In addition, after replacing the trackpad, there is a continous noice coming from the fan.

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2942205:01crwdne2942205:0:

Lets run the onboard diagnostics to see if you get an error or two. Restart your system and press the D key to enter, let us know what you get.

Reference: Mac startup key combinations

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0