If you don't live in the US USA Or in one of their territories you can also: contact the Social Security office, the US embassy or consulate. USA Closer.
and can I do it electronically?
yes and In most cases, once your application is submitted electronically, it is done.
and what does social security offer?