The term comes from Extreme Programming. A spike answers a specific question, such as whether a third-party API supports what the team needs, or which of two approaches performs better. It is limited by time, not by scope: the team agrees in advance how long to spend, often a few hours to two days, and stops when the time is up, even if the answer is partial.
Example
A team is asked to show courier delivery estimates on the order page. Votes in planning poker come in as 5, 13, ? and ?. Nobody knows whether the courier's API returns estimates. The team adds a spike: "Check whether the courier API returns delivery estimates and how fast. Timebox: 1 day." After the spike, the real story is estimated at 5 with a narrow spread.
Common misunderstanding
A spike is not a way to start building the feature without an estimate. Its result is a decision, a short write-up or a throwaway prototype. Teams that need a spike for almost every story usually have a refinement problem: questions that should be answered while preparing the backlog are being pushed into the sprint.
In planning poker
A row of "?" cards or a very wide spread often means a spike is needed before estimating. Many teams do not give spikes story points and track them by their timebox instead. See user story splitting and estimation anti-patterns.