Q: Car starts, then dies quickly after oil pan change. Codes P0021&p0011,+oil light on 2009 Pontiac G6

Rookie cbe0621eac06868b3efe0d8d1d3611e23c60d3114864ea2ec19a68cfbd3eebab
cleaned ocv solenoid valves, next step is camshaft position sensor, and thinking oil pressure switch. Any other ideas would be greatly appreciated. Replaced oil pan, huge pain, and codes popped right after. Car runs smooth for anywhere from 5 to 10 seconds at idle, then comes to an abrupt halt. Thanks in advance for any advice.
(1) Answer
(2) Comments
Got oil in it? Might want to check oil pressure with a gauge. Why did you "change" the oil pan?