How to erase iPhone 8 and set up as new

Says someone activation is on there an bought second hand
Welcome to iMore. If it's locked to someome's account, there's nothing you can do without their log in credentials. Try to get your money back. If that's not possible, then you're stuck.
I've heard replacing the logic board may help as it stores the iCloud lock but it sounds like it is stolen so get your money back.

Original thread: https://forums.imore.com/threads/how-to-erase-iphone-8-and-set-up-as-new.407702/