Forgot PASSCODE Flight mode ONLY

Hi everyone,

I have an old iPhone 5 which pass code I can't remember and is in flight mode but I can't turn it into online mode.

Does anybody know if is any way around to sort this out ?

Thanks.