Car started to slow down and then the check engine light, battery, and engine oil light came on. What could cause this?

I was driving home from work started to go up a hill and started to slow down. Went to step on the gas and nothing was happening. Was able to pull over parked the car and saw the Check engine light came on. Turned the car off to check. checked the oil, tried to start the car and it wouldn't turn over. Then along with the check engine light the battery light and motor oil light came on as well. What could cause this?
My car's transmission is unknown to me.

– Car started to slow down and then the check engine light, battery, and engine oil light came on. What could cause this?