MacBook Pro won't go to sleep when lid is closed
This is looking like a hardware problem. It's possible that the repair shop may have hooked it up incorrectly (even professionals make mistakes) such that the lid closing doesn't register, or the connection may have been knocked out of place.