2000 Toyota Avalon XLS engine trouble

Call around to auto parts stores and find one that has free code readings and post here.
It will give you the area where trouble is.
No way would I put a new motor in it.
Ask around and check machanic files on here for good local repair shop.
Please do not use tire,muffler or quick lube shop.
After we see the codes from check engine light we can give you info for when you go to repair shop.
If repair shop says part needs replaced ask him why and can it be checked with meter,you do not want to THROW parts at it.