did you read codes?

have you noticed any broken rubber hoses around engine?
did you lift of the airbox at any time, when refitting maybe airbox not sitting right ontop of MAF?

maybe bad spark plugs?
maybe bad coil packs?
maybe bad earth strap?

check with flash ligth if you notice anything strange around engine?