2003 4 cyl bucking @1500-1800RPM plugs/wires did not correct on 2003 Ford Ranger

was told the engine may have been chged to 1997.Are electronics different that could cause my problem?

Asked by for the 2003 Ford Ranger
mine did it check the coil pack pull the wires off why it is running and see if the all spark