Can't enable find my iphone
I don't know what's wrong in my device. I upgraded to a 14 Pro from an iPhone X. Now that I want to factory reset the X to give away, it tells me I can't because I have to turn off Find My first but I see that Find My is turned off (the option is greyed out even). Then I try to sign out from iCloud but when I click the option at the bottom of the iCloud page, it doesn't do anything. No insert your passcode, or apple ID password or anything.
I tried turning Screen Time off but it doesn't do anything. My Location Services are all enabled and working properly. I think the first step to solve this is to find a way to enable Find My on my devices but the option is greyed out in both phones.
I remember having Find My working properly years ago (I lost my phone and found it through the app), so one day it stopped working without me noticing.
iPhone 14 Pro