Camshaft pos sens p0340 Hyundai 2.7 changed cam sensor crank sensor now it wont start

Camshaft pos sens p0340 Hyundai 2.7 changed cam sensor crank sensor now it wont start