*Answering due to low quality prior answers*
The iCloud lock is based on the device S/N, so there is no fix. You need to regain access to the Apple ID, or you need to have the receipt from when you bought the device to get it removed.
Unless you can do either of those things, it’s going to need a board swap - at which point, the phone is not worth fixing. Especially in 2022 as I answer this, as carriers blocked new activations of 3G phones years ago, and 3G is dying in 2022-2023 with the big 3*.
*T-Mo is shooting for a 2022 date for the EVDO/3G Sprint networks, but if Dish gets their way by continuing to cry, it may go out to 2023.