Iphone 5S is iCloud locked so you can not use its logic board or any part which is associated with imei number. You can use battery, body cover if size are same and display. But for Display make sure screw position alignment are same for both screen otherwise it will not work. Better to use both iPhone use iPhone carrier unlock code for iPhone 5s.
It is seem to be only some boot hardware failure. Do you get any system beep sound when you power on laptop. Do one thing. Only install RAM in same slot where it was working before. Do not install HDD. Now power on laptop. Also inform any LED on display turn on or now. I think ram is not properly installed or hdd is not properly fixed. Inform us what is system sound or beep sound when turn on.
Does you find power led blinking or not. It shows that your dvd tray stuck. slightly press try in opposite direction and then press eject. Try this few time Or if you find any needle size hole,enter needle inside it to take disk out.
go to safari browser, first enter your email id under gmail. then next as show in image click on forgot password. then it may ask for security question or send a code to your mobile number or recovery email id. then reset your gmail password.
Press and hold power button for 5 to 10 second it will turn off your laptop. Any beep sound when you try to boot your samsung laptop. try to remove hard disk, and boot the computer. and then refix it. check the connection of hard disk and dvd rom. screen shot will be better for answer.
On laptop if your bios password lost and you enter wrong password many times. then you get system disabled message with some number. now not down that number and now there are many python scripts are available on online which can regenerate your bios password from this system disabled number. download those scripts as per your laptop model. it is called dell keygen software and mostly in zip format. You can reset bios password by jumper which is on your laptop mother board or desktop mother board. On desktop computer if your remove battery from your motherboard and reinsert it after 1 minute your bios password removed or reset to default. There are also master password for all laptop. at booting time press f9 this will load default and you can reset bios password. To enter bios mostly f2 is used in dell and fp for default load.
@jayeff suggested procedure is very nice. but i also suggest to check your mobile with other charger adapter. and try to clean charging port of your mobile with cotton and clean it. It this not work then go for the above procedure