How do cells get energy?

Im pretty sure plants get energy from the mytochondria, plant cells from photosythises.