it's an iMac, therefore completely irrelevant whether its a GPU or logic board failure. Either way, the machine is trash.
You should try ram but I doubt that's the issue.
For a 3.5" drive you definitely need something with external power, whether its a dock or an enclosure. I have a POS powered dock that I keep around for this purpose. Startech i think and cost around 30 bucks.