Bones won't join to mesh
In your file the armature is child of the mesh, while it should be the opposite: select the armature and press Alt P (clear parent).
Then select the mesh FIRST, shift select the armature (mesh has to be highlighted orangy, armature yellow), then press Ctrl P with automatic weights.
In this way, in pose mode the bones will control the mesh.