Welcome to TRS
Ignore the 998 for now
Here is a full list of 3 digit Ford codes:
https://www.therangerstation.com/tech_library/3digitcodes.shtml
You need to look up any codes, 2, 3, or 4 digit on a FULL list, so you can see the codes the computer did NOT chose, all sensors have more than 1 code
MAF has these 5
157 Mass Air Flow signal is/was low or grounded - MAF
158 MAF sensor is/was high or short to power - MAF
159 MAF sensor is/was out of range - MAF
184 Mass Air (MAF) output higher than expected - Fuel control
185 Mass Air (MAF) output lower than expected - Fuel control
So 157 would more likely be a wiring issue, 159, 184 and 185 would more likely be sensor issue, but short to power or ground can also be a bad sensor, shorted inside
The computer can't tell you whats wrong, ever, it can just tell you what it "sees" or "saw", there is no "this sensor is bad" code on any year
You can use a volt/ohm meter to test wire on any sensor or control
Unplug the MAF sensor
Clear the code
start the engine
See if code comes back, if so then its for sure wiring issue