truck gets hot and will die, miss, etc on 2005 Ford F-150

We have replaced camphasers with kit..replaced cam position sensor and when you first drive truck it acts okay, but when it gets warmed up it starts acting up, dying, and makes noise...need help

1 answer
What codes does it have?