Why does my ball keep falling off my platform whenever I respawn?

My game involves obstacles which my ball needs to cross. When my ball hits these obstacles the ball spins and ends up on its side. Therefore spinning around in circles instead of moving. Then when it respawns it keeps rolling off the edges. Is there anything which I can do to stop this?

Sounds like problem is in the movement script or physics components are not correctly set up, its impossible to tell without your code and/or image examples.