Massachusetts incompetent Governer & Islam

Re: Massachusetts incompetent Governer & Islam

was the prophet a ruler over his people?
was there any sharia or judiciary for that matter in effect at that time?