There are four diagnostic LEDs on the MLB which may help, but more than likely something was damaged when you removed or reinstalled the MLB. Are you sure the heatsink was actually reinstalled properly? If it is not even, then the system may be overheating. Unfortunately I cannot provide a link to the description of these LEDs as they are on sites where the moderators will remove links to them. It is easy enough to search them out though, plus you may even locate the Apple service guide for your particular model iMac which will provide a troubleshooting flowchart & steps to attempt to narrow down the problem to one of the major components.
Some of the connectors are also very delicate & easily damaged (especially for the Display), so you may want to check them as well for possible damage.