In the case of pendulum energy in the Bob at any instant of time, can be either potential energy (P.E) or kinetic energy (K.E) or a mixture of both but its total energy at any instant of time remains constant. This can be illustrated by below illustration in the figure.

In case of pendulum energy in the Bob at any instant of time when the pendulum Bob is at position B.It has only potential energy(P.E) and no kinetic energy(K.E).
As the Bob starts moving from position B to position A potential energy(P.E) decreases but Kinetic Energy(K.E) increases.
When the Bob reaches position A, there is only kinetic energy(K.e) but no potential energy(P.E).
As Bob moves from position A to position C, potential energy(p.E) increases but kinetic energy decreases.
When Bob reaches position C, Bob stops for a very small instant of time, At that time, Bob has only potential energy but no kinetic energy.
The Bob eventually comes to rest due to the frictional force offered by the air and the rigid support holding the thread.
It is not a violation of the law of conservation of energy since mechanical energy can get converted into another form of energy which cannot be utilized for useful work. This loss of energy is called dissipation of energy.
(Street Plan) : A city has two main roads which cross each other at the centre of the city. These two roads are along the North-South direction and East-West direction.
All the other streets of the city run parallel to these roads and are 200 m apart. There are 5 streets in each direction. Using 1cm = 200 m, draw a model of the city on your notebook. Represent the roads/streets by single lines. There are many cross- streets in your model. A particular cross-street is made by two streets, one running in the North - South direction and another in the East - West direction. Each cross street is referred to in the following manner : If the 2nd street running in the North - South direction and 5th in the East - West direction meet at some crossing, then we will call this cross-street (2, 5). Using this convention, find:
(i) how many cross - streets can be referred to as (4, 3).
(ii) how many cross - streets can be referred to as (3, 4).
The work and kinetic energy principle (also known as the work-energy theorem) asserts that the work done by all forces acting on a particle equals the change in the particle's kinetic energy. By defining the work of the torque and rotational kinetic energy, this definition can be extended to rigid bodies.
The change in kinetic energy KE is equal to the work W done by the net force on a particle is given by,
W = ΔKE = ½ mv2f − ½ mv2i
Where,
vi → Speeds of the particle before the application of force
vf → Speeds of the particle after the application of force
m → Particle’s mass
Note: Energy and Momentum are related by, E = p2 / 2m.