Often, a shock when plugging things in is a result of poor plug safety. If you’re wearing metal jewelry on your fingers while plugging things in, or if your hand is wet, power may jump from the outlet to your body. Likewise, touching a plug that’s not all the way in the socket can lead to a sudden and forceful shock.
If you are consistently shocked even when plugging things in safely, though, there may be an issue with the outlet itself. The same shock that’s hurting you could easily ignite dry wood or dust and start a fire in your home. Call an electrician to check out the offending outlet, determine the source of the shock and fix the problem right away.