What to do if a droid phone is turning on and off?

Take out the battery for a bit, try it again. If it keeps happening you need to try to re-load the operating system on the phone, do a web search on how to do that for your model. Or bring it into a cell phone store.