Energy can be transferred from one form to another. It cannot be created or destroyed. The total energy stays the same. The best way to look at this is with examples.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21