Apple has chip embedded in screens which disables some function when the screen is not directly installed by Apple, even if it is from another genuine Apple product. iPhone adopted this long time ago.
The only way to bring it back is to send your Mac to Apple and pay them (a substantial) service fee to get your screen replaced.