will a 2008 f150 5.4l engine work in my 2005 f150
The engine will work fine, and I doubt you'd even have to change up the transmission housing, the only thing you'd have to find is a motor mount for the engine if it doesn't fit exactly on your old one.
Search Ford F-150 Questions
Are you a UK consumer? CarGurus now has a discussion forum in the UK.
Ford F-150 Experts