1.
Are you sure you got the correct TPS ?
*I know on the Focus, there is a different one for auto and MTX trannies.
2.
Is it a Ford part ?
3.
Did you install it exactly like the old one ?
Meaning, you usually have to install the new one and turn it about 1/8 of a turn to line of the mounting screws.
If you didn't install with the correct amount of alignment, the TPS may be installed incorrectly.
Also, did you make sure you connected the TPS wires back on.(I know, it sounds dumb but never over look the obvious.)
4.
Do you have an aftermarket TB ?
If everything checks out, you could always reset the ECU and then drive around for about 10 minutes on the street and highway and see if it helps.