i would agree with "Angelchelsea", and would add that "lack of insulin" is not the only cause of diabetes.
but as your question is insulin specific:
insulin is a hormone (and as such, a protein.) that is indeed provided by the pancreas, it is secreted by a small group of cells, within the pancreas, called the islet cells. the purpose of insulin is indeed to regulate the release of energy, from the food that we eat, into the cells that require it.
hope that this helps.